blob: 4a519d8728a7a6fe95226192cf1fba10ac29ad74 [file] [log] [blame]
/**
******************************************************************************
* Copyright © 2017-2018 PTA GmbH.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
*
* http://www.eclipse.org/legal/epl-v10.html
*
******************************************************************************
*/
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { OverviewComponent } from './pages/overview/overview.component';
import { LoginComponent } from './pages/login/login.component';
const ROUTES: Routes = [
{
path: '',
redirectTo: '/login',
pathMatch: 'full'
},
{
path: 'overview',
component: OverviewComponent
},
{
path: 'login',
component: LoginComponent
}
];
@NgModule({
imports: [
RouterModule.forRoot(ROUTES, {useHash: true})
],
exports: [RouterModule]
})
export class AppRoutingModule { }