Commits

Giuseppe Digilio authored 2cabfc7752a
[DURACOM-191] Remove lookup-by-id.module
No tags

src/app/lookup-by-id/lookup-by-id-routes.ts

Modified
1 1 import {
2 2 Route,
3 3 UrlSegment,
4 4 } from '@angular/router';
5 5
6 +import { DsoRedirectService } from '../core/data/dso-redirect.service';
6 7 import { isNotEmpty } from '../shared/empty.util';
7 8 import { LookupGuard } from './lookup-guard';
8 9 import { ThemedObjectNotFoundComponent } from './objectnotfound/themed-objectnotfound.component';
9 10
10 11 export const ROUTES: Route[] = [
11 12 {
12 13 matcher: urlMatcher,
13 14 providers: [
14 15 LookupGuard,
16 + DsoRedirectService,
15 17 ],
16 18 canActivate: [LookupGuard],
17 19 component: ThemedObjectNotFoundComponent,
18 20 },
19 21 ];
20 22
21 23
22 24 export function urlMatcher(url) {
23 25 // The expected path is :idType/:id
24 26 const idType = url[0].path;

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut