Doppelkopf-Stats-Frontend/src/app/app-routing.module.ts

21 lines
735 B
TypeScript

import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import {GamenightComponent} from './pages/gamenight/gamenight.component';
import {HomeComponent} from './pages/home/home.component';
import {StatsComponent} from './pages/stats/stats.component';
import {MatchHistoryComponent} from "./pages/match-history/match-history.component";
const routes: Routes = [
{path: '', component: HomeComponent, pathMatch: 'full'},
{path: 'gamenight', component: GamenightComponent},
{path: 'stats', component: StatsComponent},
{path: 'match-history', component: MatchHistoryComponent}
];
@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule]
})
export class AppRoutingModule {
}