18 lines
962 B
TypeScript
18 lines
962 B
TypeScript
import { Routes } from '@angular/router';
|
|
import { RegistrationComponent } from './components/registration/registration.component';
|
|
import { LandingComponent } from './components/landing/landing.component';
|
|
import { ApplicationListComponent } from './components/application-list/application-list.component';
|
|
import { ApplicationComponent } from './components/application/application.component';
|
|
import { PageNotFoundComponent } from './page-not-found/page-not-found.component';
|
|
|
|
export const routes: Routes = [
|
|
{ path: 'landing', component: LandingComponent },
|
|
{ path: 'application/new', component: RegistrationComponent },
|
|
{ path: 'application/:id/edit', component: RegistrationComponent },
|
|
{ path: 'application-list', component: ApplicationListComponent },
|
|
{ path: 'application/:id', component: ApplicationComponent },
|
|
{ path: '', redirectTo: '/landing', pathMatch: 'full' },
|
|
{ path: '**', component: PageNotFoundComponent },
|
|
];
|
|
|