mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
[DURACOM-191] add provided in root
This commit is contained in:
@@ -73,7 +73,7 @@ class DsoByIdOrUUIDDataService extends IdentifiableDataService<DSpaceObject> {
|
||||
* A service to handle redirects from identifier paths to DSO path
|
||||
* e.g.: redirect from /handle/... to /items/...
|
||||
*/
|
||||
@Injectable()
|
||||
@Injectable({ providedIn: 'root' })
|
||||
export class DsoRedirectService {
|
||||
private dataService: DsoByIdOrUUIDDataService;
|
||||
|
||||
|
@@ -3,7 +3,6 @@ import {
|
||||
UrlSegment,
|
||||
} from '@angular/router';
|
||||
|
||||
import { DsoRedirectService } from '../core/data/dso-redirect.service';
|
||||
import { isNotEmpty } from '../shared/empty.util';
|
||||
import { LookupGuard } from './lookup-guard';
|
||||
import { ThemedObjectNotFoundComponent } from './objectnotfound/themed-objectnotfound.component';
|
||||
@@ -13,7 +12,6 @@ export const ROUTES: Route[] = [
|
||||
matcher: urlMatcher,
|
||||
providers: [
|
||||
LookupGuard,
|
||||
DsoRedirectService,
|
||||
],
|
||||
canActivate: [LookupGuard],
|
||||
component: ThemedObjectNotFoundComponent,
|
||||
|
Reference in New Issue
Block a user