2024-07-06 01:01:52 +00:00
|
|
|
import { Routes } from '@angular/router';
|
2024-12-28 01:36:33 +00:00
|
|
|
import { PolicyComponent } from './policies/policy/policy.component';
|
2024-10-31 05:33:11 +00:00
|
|
|
import { AuthUserGuard } from './shared/auth/auth.user.guard';
|
2025-01-07 17:56:11 +00:00
|
|
|
import { LoginComponent } from './auth/login/login.component';
|
|
|
|
import { TtsLoginComponent } from './auth/tts-login/tts-login.component';
|
2024-10-17 08:48:15 +00:00
|
|
|
import { TwitchAuthCallbackComponent } from './twitch-auth-callback/twitch-auth-callback.component';
|
2024-12-28 01:37:44 +00:00
|
|
|
import { FiltersComponent } from './tts-filters/filters/filters.component';
|
2025-01-07 17:56:11 +00:00
|
|
|
import { AuthAdminGuard } from './shared/auth/auth.admin.guard';
|
|
|
|
import { ActionComponent } from './actions/action/action.component';
|
|
|
|
import { AuthVisitorGuard } from './shared/auth/auth.visitor.guard';
|
2024-07-06 01:01:52 +00:00
|
|
|
|
2024-10-17 08:48:15 +00:00
|
|
|
export const routes: Routes = [
|
2025-01-07 17:56:11 +00:00
|
|
|
{
|
|
|
|
path: 'policies',
|
|
|
|
component: PolicyComponent,
|
|
|
|
canActivate: [AuthUserGuard],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'filters',
|
|
|
|
component: FiltersComponent,
|
|
|
|
canActivate: [AuthUserGuard],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'actions',
|
|
|
|
component: ActionComponent,
|
|
|
|
canActivate: [AuthAdminGuard],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'login',
|
|
|
|
component: LoginComponent,
|
|
|
|
canActivate: [AuthVisitorGuard],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'tts-login',
|
|
|
|
component: TtsLoginComponent,
|
|
|
|
canActivate: [AuthUserGuard],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'auth',
|
|
|
|
component: TwitchAuthCallbackComponent,
|
|
|
|
canActivate: [AuthVisitorGuard],
|
|
|
|
}
|
2024-10-17 08:48:15 +00:00
|
|
|
];
|