source: trip-planner-front/src/app/app-routing.module.ts@ b738035

Last change on this file since b738035 was b738035, checked in by Ema <ema_spirova@…>, 3 years ago

signup/login server errors on front and remove location from planner

  • Property mode set to 100644
File size: 1.2 KB
Line 
1import { NgModule } from '@angular/core';
2import { RouterModule, Routes } from '@angular/router';
3import { ExploreComponent } from './explore/explore.component';
4import { HomepageComponent } from './homepage/homepage.component';
5import { LoginComponent } from './homepage/login/login.component';
6import { LocationDetailsComponent } from './location/location-details/location-details.component';
7import { LocationComponent } from './location/location.component';
8import { LocationsFormComponent } from './locations-form/locations-form.component';
9import { EditPlannerComponent } from './planner/edit-planner/edit-planner.component';
10import { PlannerComponent } from './planner/planner.component';
11
12const routes: Routes = [
13 {path: 'planners', component: PlannerComponent},
14 {path: 'form', component: LocationsFormComponent},
15 {path: 'edit/planner/:id', component: EditPlannerComponent},
16 {path: 'locations', component: LocationComponent},
17 {path: '', component: HomepageComponent},
18 {path: '', component:LoginComponent},
19 {path: 'location', component: LocationDetailsComponent},
20 {path: 'explore', component: ExploreComponent}
21];
22
23@NgModule({
24 imports: [RouterModule.forRoot(routes)],
25 exports: [RouterModule]
26})
27export class AppRoutingModule { }
Note: See TracBrowser for help on using the repository browser.