mirror of
https://framagit.org/framasoft/framadate/funky-framadate-front.git
synced 2023-08-25 13:53:14 +02:00
41 lines
1.5 KiB
TypeScript
41 lines
1.5 KiB
TypeScript
import { Routes } from '@angular/router';
|
|
import { HomeComponent } from './core/components/home/home.component';
|
|
import { PollService } from './core/services/poll.service';
|
|
import { PageNotFoundComponent } from './shared/components/page-not-found/page-not-found.component';
|
|
|
|
export const routes: Routes = [
|
|
{ path: '', component: HomeComponent },
|
|
{
|
|
path: 'user',
|
|
loadChildren: () => import('./features/user-profile/user-profile.module').then((m) => m.UserProfileModule),
|
|
},
|
|
{
|
|
path: 'administration',
|
|
loadChildren: () =>
|
|
import('./features/administration/administration.module').then((m) => m.AdministrationModule),
|
|
// resolve: {poll: PollService},
|
|
},
|
|
{
|
|
path: 'poll/:slug/administration',
|
|
loadChildren: () =>
|
|
import('./features/administration/administration.module').then((m) => m.AdministrationModule),
|
|
resolve: { poll: PollService },
|
|
},
|
|
{
|
|
path: 'poll/:slug/consultation',
|
|
loadChildren: () => import('./features/consultation/consultation.module').then((m) => m.ConsultationModule),
|
|
resolve: { poll: PollService },
|
|
},
|
|
{
|
|
path: 'poll/:slug/participation',
|
|
loadChildren: () => import('./features/participation/participation.module').then((m) => m.ParticipationModule),
|
|
resolve: { poll: PollService },
|
|
},
|
|
{
|
|
path: 'oldstuff',
|
|
loadChildren: () => import('./features/old-stuff/old-stuff.module').then((m) => m.OldStuffModule),
|
|
},
|
|
{ path: 'page-not-found', component: PageNotFoundComponent },
|
|
{ path: '**', redirectTo: 'page-not-found', pathMatch: 'full' },
|
|
];
|