blob: b2d15317b428579b0024f24eeb5b2ebbf9fa2cd4 [file] [log] [blame]
Stone, Avi (as206k)9b2ceb32018-04-12 16:36:39 +03001import { NgModule } from '@angular/core';
2import { RouterModule, Routes } from '@angular/router';
3
4import { HomeComponent } from './home/home.component';
5import { MainComponent } from './main/main.component';
6
7const routes: Routes = [
8 {
9 path: '',
10 redirectTo: '/home',
11 pathMatch: 'full'
12 },
13 {
14 path: 'home',
15 component: HomeComponent
16 },
17 {
18 path: 'main/:contextType/:uuid/:version/:mcid',
19 component: MainComponent
20 }
21];
22
23@NgModule({
24 imports: [RouterModule.forRoot(routes, { useHash: true })],
25 exports: [RouterModule]
26})
27export class AppRoutingModule {}