You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.4 KiB
29 lines
1.4 KiB
import { NgModule } from '@angular/core';
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
import { WorkComponent } from './components/work/work.component';
|
|
import { EditorComponent } from './components/editor/editor.component';
|
|
import { LandingPageComponent } from './components/landing-page/landing-page.component';
|
|
import { DocumentationComponent } from './components/documentation/documentation.component';
|
|
import { FormComponent } from './components/form/form.component';
|
|
import { TermsOfServiceComponent } from './components/terms-of-service/terms-of-service.component';
|
|
import { PrivacyPolicyComponent } from './components/privacy-policy/privacy-policy.component';
|
|
import { WorksListComponent } from './components/works-list/works-list.component';
|
|
|
|
// Toutes les routes de l'application sont définies ici
|
|
const routes: Routes = [
|
|
{ path: '', component: LandingPageComponent },
|
|
{ path: 'work/:id', component: WorkComponent },
|
|
{ path: 'works', component: WorksListComponent },
|
|
{ path: 'editor', component: EditorComponent },
|
|
{ path: 'documentation', component: DocumentationComponent },
|
|
{ path: 'contact', component: FormComponent },
|
|
{ path: 'terms-of-service', component: TermsOfServiceComponent },
|
|
{ path: 'privacy-policy', component: PrivacyPolicyComponent },
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forRoot(routes)],
|
|
exports: [RouterModule],
|
|
})
|
|
export class AppRoutingModule {}
|