mirror of
https://framagit.org/framasoft/framadate/funky-framadate-front.git
synced 2023-08-25 13:53:14 +02:00
34 lines
1007 B
TypeScript
34 lines
1007 B
TypeScript
import { NgModule } from '@angular/core';
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
|
|
import { HomeComponent } from './core/components/home/home.component';
|
|
import { PageNotFoundComponent } from './shared/components/page-not-found/page-not-found.component';
|
|
|
|
const routes: Routes = [
|
|
{ path: '', component: HomeComponent },
|
|
{
|
|
path: 'administration',
|
|
loadChildren: () =>
|
|
import('./features/administration/administration.module').then((m) => m.AdministrationModule),
|
|
},
|
|
{
|
|
path: 'participation',
|
|
loadChildren: () => import('./features/participation/participation.module').then((m) => m.ParticipationModule),
|
|
},
|
|
{
|
|
path: 'oldstuff',
|
|
loadChildren: () => import('./features/old-stuff/old-stuff.module').then((m) => m.OldStuffModule),
|
|
},
|
|
{ path: '**', component: PageNotFoundComponent },
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [
|
|
RouterModule.forRoot(routes, {
|
|
// enableTracing: true, // <-- debugging purposes only
|
|
}),
|
|
],
|
|
exports: [RouterModule],
|
|
})
|
|
export class AppRoutingModule {}
|