[6a3a178] | 1 | import { NgModule } from '@angular/core';
|
---|
| 2 | import { RouterModule, Routes } from '@angular/router';
|
---|
[76712b2] | 3 | import { ExploreResultComponent } from './explore/explore-result/explore-result.component';
|
---|
[b738035] | 4 | import { ExploreComponent } from './explore/explore.component';
|
---|
[59329aa] | 5 | import { HomepageComponent } from './homepage/homepage.component';
|
---|
[84d0fbb] | 6 | import { LoginComponent } from './homepage/login/login.component';
|
---|
[6fe77af] | 7 | import { AddLocationComponent } from './location/add-location/add-location.component';
|
---|
[59329aa] | 8 | import { LocationDetailsComponent } from './location/location-details/location-details.component';
|
---|
[6c1585f] | 9 | import { LocationComponent } from './location/location.component';
|
---|
[6a80231] | 10 | import { LocationsFormComponent } from './locations-form/locations-form.component';
|
---|
| 11 | import { EditPlannerComponent } from './planner/edit-planner/edit-planner.component';
|
---|
| 12 | import { PlannerComponent } from './planner/planner.component';
|
---|
[6a3a178] | 13 |
|
---|
[6fe77af] | 14 |
|
---|
[6a80231] | 15 | const routes: Routes = [
|
---|
| 16 | {path: 'planners', component: PlannerComponent},
|
---|
| 17 | {path: 'form', component: LocationsFormComponent},
|
---|
[6c1585f] | 18 | {path: 'edit/planner/:id', component: EditPlannerComponent},
|
---|
[59329aa] | 19 | {path: 'locations', component: LocationComponent},
|
---|
| 20 | {path: '', component: HomepageComponent},
|
---|
[84d0fbb] | 21 | {path: '', component:LoginComponent},
|
---|
[b738035] | 22 | {path: 'location', component: LocationDetailsComponent},
|
---|
[76712b2] | 23 | {path: 'explore', component: ExploreComponent},
|
---|
[6fe77af] | 24 | {path: 'results', component: ExploreResultComponent},
|
---|
| 25 | {path: 'add-location', component: AddLocationComponent}
|
---|
[6a80231] | 26 | ];
|
---|
[6a3a178] | 27 |
|
---|
| 28 | @NgModule({
|
---|
| 29 | imports: [RouterModule.forRoot(routes)],
|
---|
| 30 | exports: [RouterModule]
|
---|
| 31 | })
|
---|
| 32 | export class AppRoutingModule { }
|
---|