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';
|
2024-10-17 08:48:15 +00:00
|
|
|
import { LoginComponent } from './login/login.component';
|
|
|
|
import { TtsLoginComponent } from './tts-login/tts-login.component';
|
|
|
|
import { TwitchAuthCallbackComponent } from './twitch-auth-callback/twitch-auth-callback.component';
|
2024-07-06 01:01:52 +00:00
|
|
|
|
2024-10-17 08:48:15 +00:00
|
|
|
export const routes: Routes = [
|
|
|
|
{
|
|
|
|
path: 'policies',
|
|
|
|
component: PolicyComponent,
|
2024-10-31 05:33:11 +00:00
|
|
|
canActivate: [AuthUserGuard],
|
2024-10-17 08:48:15 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'login',
|
|
|
|
component: LoginComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'tts-login',
|
|
|
|
component: TtsLoginComponent,
|
2024-10-31 05:33:11 +00:00
|
|
|
canActivate: [AuthUserGuard],
|
2024-10-17 08:48:15 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'auth',
|
|
|
|
component: TwitchAuthCallbackComponent
|
|
|
|
}
|
|
|
|
];
|