blob: c58d9ca7a65c7c1dc524393a391235431a0c13de [file] [log] [blame]
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { HomeComponent } from './home/home.component';
import { MainComponent } from './main/main.component';
const routes: Routes = [
{
path: '',
redirectTo: '/home',
pathMatch: 'full'
},
{
path: 'home',
component: HomeComponent
},
{
path: 'main/:contextType/:uuid/:version/:mcid',
component: MainComponent
},
{
path: 'main/:contextType/:uuid/:version/:mcid/:submitted',
component: MainComponent
}
];
@NgModule({
imports: [RouterModule.forRoot(routes, { useHash: true })],
exports: [RouterModule]
})
export class AppRoutingModule {}