summaryrefslogtreecommitdiff
path: root/overlays/spm/frontend/src/app/app-routing.module.ts
blob: bffe8c4da69a7ad068fe1d880b3e9686816c4f1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { NgModule } from '@angular/core';
import { RouterModule, Routes, PreloadAllModules } from '@angular/router';

const routes: Routes = [
  { path: 'spm', loadChildren: () => import('./spm/spm.module').then(m => m.SpmModule) },
  { path: '', redirectTo: '/spm', pathMatch: 'full' },
  { path: '**', loadChildren: () => import('./page-not-found/page-not-found.module').then(m => m.PageNotFoundModule) }
];

@NgModule({
  imports: [RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })],
  exports: [RouterModule]
})
export class AppRoutingModule { }