Move toju-app into own its folder
This commit is contained in:
42
toju-app/src/app/app.routes.ts
Normal file
42
toju-app/src/app/app.routes.ts
Normal file
@@ -0,0 +1,42 @@
|
||||
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/auth/feature/login/login.component').then((module) => module.LoginComponent)
|
||||
},
|
||||
{
|
||||
path: 'register',
|
||||
loadComponent: () =>
|
||||
import('./domains/auth/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)
|
||||
}
|
||||
];
|
||||
Reference in New Issue
Block a user