2020-12-02 08:02:24 +00:00
|
|
|
import {NgModule} from '@angular/core';
|
|
|
|
import {CommonModule} from '@angular/common';
|
|
|
|
import {RouterModule, Routes} from '@angular/router';
|
|
|
|
import {AppComponent} from './app.component';
|
2020-12-07 20:37:12 +00:00
|
|
|
import {ProductListComponent} from './components/product-list/product-list.component';
|
2020-12-09 06:51:08 +00:00
|
|
|
import {LandingpageComponent} from './pages/landingpage/landingpage.component';
|
|
|
|
import {ProductDetailPageComponent} from './pages/product-detail-page/product-detail-page.component';
|
|
|
|
import {ProductSearchPageComponent} from './pages/product-search-page/product-search-page.component';
|
2020-12-09 10:00:49 +00:00
|
|
|
import {PageNotFoundPageComponent} from './pages/page-not-found-page/page-not-found-page.component';
|
2021-04-05 10:56:21 +00:00
|
|
|
import {ImprintComponent} from './pages/imprint/imprint.component';
|
|
|
|
import {PrivacyComponent} from './pages/privacy/privacy.component';
|
2020-12-02 08:02:24 +00:00
|
|
|
|
|
|
|
const routes: Routes = [
|
2020-12-02 15:43:57 +00:00
|
|
|
{path: '', component: LandingpageComponent},
|
2020-12-09 06:51:08 +00:00
|
|
|
{path: 'search', component: ProductSearchPageComponent},
|
2020-12-09 10:00:49 +00:00
|
|
|
{path: 'product/:id', component: ProductDetailPageComponent},
|
2021-04-05 10:56:21 +00:00
|
|
|
{path: 'impressum', component: ImprintComponent},
|
|
|
|
{path: 'datenschutz', component: PrivacyComponent},
|
2020-12-09 10:00:49 +00:00
|
|
|
{path: '**', component: PageNotFoundPageComponent}
|
2020-12-02 08:02:24 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
declarations: [],
|
|
|
|
imports: [
|
|
|
|
RouterModule.forRoot(routes)
|
|
|
|
],
|
|
|
|
exports: [
|
|
|
|
RouterModule
|
|
|
|
]
|
|
|
|
})
|
2020-12-02 15:43:57 +00:00
|
|
|
export class AppRouting {
|
2020-12-02 08:02:24 +00:00
|
|
|
}
|