2017-09-26 18:13:00 +02:00
|
|
|
import { ModuleWithProviders } from '@angular/core';
|
|
|
|
import { Routes, RouterModule } from '@angular/router';
|
|
|
|
|
2017-09-30 13:48:40 +02:00
|
|
|
import { TestSessionsComponent } from './components/test-sessions/test-sessions.component';
|
2018-06-15 14:45:47 +02:00
|
|
|
import { TestScenariosComponent } from './components/test-scenarios/test-scenarios.component';
|
2017-09-30 13:48:40 +02:00
|
|
|
import { TestApirestComponent } from './components/test-apirest/test-apirest.component';
|
2017-09-26 18:13:00 +02:00
|
|
|
|
|
|
|
const appRoutes: Routes = [
|
|
|
|
{
|
2017-09-30 13:48:40 +02:00
|
|
|
path: '', redirectTo: '/test-sessions', pathMatch: 'full'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'test-sessions',
|
|
|
|
component: TestSessionsComponent
|
|
|
|
},
|
2018-06-15 14:45:47 +02:00
|
|
|
{
|
|
|
|
path: 'test-scenarios',
|
|
|
|
component: TestScenariosComponent
|
|
|
|
},
|
2017-09-30 13:48:40 +02:00
|
|
|
{
|
|
|
|
path: 'test-apirest',
|
|
|
|
component: TestApirestComponent
|
2017-09-26 18:13:00 +02:00
|
|
|
}
|
|
|
|
];
|
|
|
|
|
2017-10-16 15:49:23 +02:00
|
|
|
export const routing: ModuleWithProviders = RouterModule.forRoot(appRoutes, { useHash: true });
|