mirror of
https://github.com/Mueller-Patrick/Betterzon.git
synced 2024-11-15 02:53:57 +00:00
33 lines
1.3 KiB
TypeScript
33 lines
1.3 KiB
TypeScript
import {NgModule} from '@angular/core';
|
|
import {CommonModule} from '@angular/common';
|
|
import {RouterModule, Routes} from '@angular/router';
|
|
import {AppComponent} from './app.component';
|
|
import {ProductListComponent} from './components/product-list/product-list.component';
|
|
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';
|
|
import {PageNotFoundPageComponent} from './pages/page-not-found-page/page-not-found-page.component';
|
|
import {ImprintComponent} from './pages/imprint/imprint.component';
|
|
import {PrivacyComponent} from './pages/privacy/privacy.component';
|
|
|
|
const routes: Routes = [
|
|
{path: '', component: LandingpageComponent},
|
|
{path: 'search', component: ProductSearchPageComponent},
|
|
{path: 'product/:id', component: ProductDetailPageComponent},
|
|
{path: 'impressum', component: ImprintComponent},
|
|
{path: 'datenschutz', component: PrivacyComponent},
|
|
{path: '**', component: PageNotFoundPageComponent}
|
|
];
|
|
|
|
@NgModule({
|
|
declarations: [],
|
|
imports: [
|
|
RouterModule.forRoot(routes)
|
|
],
|
|
exports: [
|
|
RouterModule
|
|
]
|
|
})
|
|
export class AppRouting {
|
|
}
|