mirror of
https://framagit.org/framasoft/framadate/funky-framadate-front.git
synced 2023-08-25 13:53:14 +02:00
46 lines
2.5 KiB
TypeScript
46 lines
2.5 KiB
TypeScript
import { NgModule } from '@angular/core';
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
|
|
import { AdminComponent } from './pages/admin/admin.component';
|
|
import { AnswersComponent } from './pages/answers/answers.component';
|
|
import { CreateOrRetrieveComponent } from './pages/create-or-retrieve/create-or-retrieve.component';
|
|
import { DatesComponent } from './pages/dates/dates.component';
|
|
import { EndConfirmationComponent } from './pages/end-confirmation/end-confirmation.component';
|
|
import { KindComponent } from './pages/example/kind/kind.component';
|
|
import { PicturesComponent } from './pages/example/pictures/pictures.component';
|
|
import { HomeComponent } from './pages/home/home.component';
|
|
import { PasswordComponent } from './pages/password/password.component';
|
|
import { PollDisplayComponent } from './pages/poll/poll-display/poll-display.component';
|
|
import { PollGraphicComponent } from './pages/poll/poll-graphic/poll-graphic.component';
|
|
import { ResumeComponent } from './pages/resume/resume.component';
|
|
import { VisibilityComponent } from './pages/visibility/visibility.component';
|
|
import { VotingChoiceComponent } from './pages/voting/voting-choice/voting-choice.component';
|
|
import { VotingComponent } from './pages/voting/voting.component';
|
|
|
|
const routes: Routes = [
|
|
{ path: '', redirectTo: 'step/home', pathMatch: 'full' },
|
|
{ path: 'admin/:token', component: AdminComponent }, // http://localhost:4200/admin/srfdgedsTGETHRYJtujTUjTUkTIUKTK
|
|
{ path: 'step/home', component: HomeComponent },
|
|
{ path: 'step/creation', component: CreateOrRetrieveComponent },
|
|
{ path: 'step/date', component: DatesComponent },
|
|
{ path: 'step/kind', component: KindComponent },
|
|
{ path: 'step/answers', component: AnswersComponent },
|
|
{ path: 'step/admin', component: AdminComponent },
|
|
{ path: 'step/pictures', component: PicturesComponent },
|
|
{ path: 'step/visibility', component: VisibilityComponent },
|
|
{ path: 'step/password', component: PasswordComponent },
|
|
{ path: 'step/resume', component: ResumeComponent },
|
|
{ path: 'step/end', component: EndConfirmationComponent },
|
|
{ path: 'graphic/:poll', component: PollGraphicComponent },
|
|
{ path: 'vote/poll/id/:id', component: PollDisplayComponent },
|
|
{ path: 'vote/poll/custom_url/:custom_url', component: PollDisplayComponent },
|
|
{ path: 'votingchoice', component: VotingChoiceComponent },
|
|
{ path: 'voting', component: VotingComponent },
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forChild(routes)],
|
|
exports: [RouterModule],
|
|
})
|
|
export class OldStuffRoutingModule {}
|