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

21 lines
735 B
TypeScript
Raw Normal View History

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