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
RevLine 
[6a3a178]1import { NgModule } from '@angular/core';
2import { RouterModule, Routes } from '@angular/router';
[b738035]3import { ExploreComponent } from './explore/explore.component';
[59329aa]4import { HomepageComponent } from './homepage/homepage.component';
[84d0fbb]5import { LoginComponent } from './homepage/login/login.component';
[59329aa]6import { LocationDetailsComponent } from './location/location-details/location-details.component';
[6c1585f]7import { LocationComponent } from './location/location.component';
[6a80231]8import { LocationsFormComponent } from './locations-form/locations-form.component';
9import { EditPlannerComponent } from './planner/edit-planner/edit-planner.component';
10import { PlannerComponent } from './planner/planner.component';
[6a3a178]11
[6a80231]12const routes: Routes = [
13 {path: 'planners', component: PlannerComponent},
14 {path: 'form', component: LocationsFormComponent},
[6c1585f]15 {path: 'edit/planner/:id', component: EditPlannerComponent},
[59329aa]16 {path: 'locations', component: LocationComponent},
17 {path: '', component: HomepageComponent},
[84d0fbb]18 {path: '', component:LoginComponent},
[b738035]19 {path: 'location', component: LocationDetailsComponent},
20 {path: 'explore', component: ExploreComponent}
[6a80231]21];
[6a3a178]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.