blob: c58d9ca7a65c7c1dc524393a391235431a0c13de [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
Manor, Yanir (ym903w)a0c5a222018-10-21 11:00:42 +030020 },
21 {
22 path: 'main/:contextType/:uuid/:version/:mcid/:submitted',
23 component: MainComponent
Stone, Avi (as206k)9b2ceb32018-04-12 16:36:39 +030024 }
25];
26
27@NgModule({
28 imports: [RouterModule.forRoot(routes, { useHash: true })],
29 exports: [RouterModule]
30})
31export class AppRoutingModule {}