43 lines
1.2 KiB
TypeScript
43 lines
1.2 KiB
TypeScript
import { Routes } from '@angular/router';
|
|
|
|
/** Application route configuration with lazy-loaded feature components. */
|
|
export const routes: Routes = [
|
|
{
|
|
path: '',
|
|
redirectTo: 'search',
|
|
pathMatch: 'full'
|
|
},
|
|
{
|
|
path: 'login',
|
|
loadComponent: () =>
|
|
import('./domains/authentication/feature/login/login.component').then((module) => module.LoginComponent)
|
|
},
|
|
{
|
|
path: 'register',
|
|
loadComponent: () =>
|
|
import('./domains/authentication/feature/register/register.component').then((module) => module.RegisterComponent)
|
|
},
|
|
{
|
|
path: 'invite/:inviteId',
|
|
loadComponent: () =>
|
|
import('./domains/server-directory/feature/invite/invite.component').then((module) => module.InviteComponent)
|
|
},
|
|
{
|
|
path: 'search',
|
|
loadComponent: () =>
|
|
import('./domains/server-directory/feature/server-search/server-search.component').then(
|
|
(module) => module.ServerSearchComponent
|
|
)
|
|
},
|
|
{
|
|
path: 'room/:roomId',
|
|
loadComponent: () =>
|
|
import('./features/room/chat-room/chat-room.component').then((module) => module.ChatRoomComponent)
|
|
},
|
|
{
|
|
path: 'settings',
|
|
loadComponent: () =>
|
|
import('./features/settings/settings.component').then((module) => module.SettingsComponent)
|
|
}
|
|
];
|