aboutsummaryrefslogtreecommitdiffstats
path: root/webapp/src/app/app.routing.ts
blob: f0d808f619110406bd671119422b5d18864011c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import {Routes, RouterModule} from "@angular/router";
import {ModuleWithProviders} from "@angular/core";
import {ConfigComponent} from "./config/config.component";
import {HomeComponent} from "./home/home.component";
import {DevelComponent} from "./devel/devel.component";


const appRoutes: Routes = [
    {path: '', redirectTo: 'home', pathMatch: 'full'},

    {path: 'config', component: ConfigComponent, data: {title: 'Config'}},
    {path: 'home', component: HomeComponent, data: {title: 'Home'}},
    {path: 'devel', component: DevelComponent, data: {title: 'Build & Deploy'}}
];

export const AppRoutingProviders: any[] = [];
export const Routing: ModuleWithProviders = RouterModule.forRoot(appRoutes, {
    useHash: true
});