mirror of
https://github.com/AIR-EISTI/hades.git
synced 2025-01-10 03:21:30 +01:00
19 lines
700 B
TypeScript
19 lines
700 B
TypeScript
import { NgModule } from '@angular/core';
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
import { GamesComponent } from './games/games.component';
|
|
import { GameDetailComponent } from './game-detail/game-detail.component';
|
|
import { ServerComponent } from './server/server.component';
|
|
import { GraphComponent } from './graph/graph.component';
|
|
|
|
const routes: Routes = [
|
|
{path: 'games', component: GamesComponent},
|
|
{path: 'games/:name', component: GameDetailComponent},
|
|
{path: 'servers/:pid', component: ServerComponent},
|
|
{path: 'graph', component: GraphComponent}
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forRoot(routes)],
|
|
exports: [RouterModule]
|
|
})
|
|
export class AppRoutingModule { }
|