31 lines
1.1 KiB
TypeScript
31 lines
1.1 KiB
TypeScript
import {Routes} from '@angular/router';
|
|
import {SignIn} from './signin/signin';
|
|
import {Chat} from './chat/chat';
|
|
import {Dm} from './chat/dm/dm';
|
|
import {noAuthGuard} from './guards/no-auth-guard';
|
|
import {authNeededGuard} from './guards/auth-needed-guard';
|
|
import {Homepage} from './homepage/homepage';
|
|
import {Privacy} from './privacy/privacy';
|
|
import {TOS} from './tos/tos';
|
|
import {Network} from './chat/network/network';
|
|
import {Text} from './chat/network/channel/text/text';
|
|
import {See} from './chat/picture/see/see';
|
|
|
|
export const routes: Routes = [
|
|
{path: '', component: Homepage},
|
|
{path: 'privacy', component: Privacy},
|
|
{path: 'tos', component: TOS},
|
|
{path: 'signin', component: SignIn, canActivate: [noAuthGuard]},
|
|
{
|
|
path: 'chat', component: Chat, canActivate: [authNeededGuard], children: [
|
|
{path: 'dm/:chatid', component: Dm},
|
|
{path: 'picture/:uploaderId', component: See},
|
|
{
|
|
path: 'network/:networkId', component: Network, children: [
|
|
{path: ":categoryId/:channelId", component: Text}
|
|
]
|
|
},
|
|
]
|
|
},
|
|
];
|