From 7a0e62a7429c9aaf31f57dfe6b397349b4224189 Mon Sep 17 00:00:00 2001 From: Lukas Kimpel <lukas.kimpel@mni.thm.de> Date: Tue, 20 Mar 2018 14:28:19 +0100 Subject: [PATCH] Move interceptors to specific folders --- src/app/app.module.ts | 2 +- src/app/{ => interceptors}/authentication.interceptor.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename src/app/{ => interceptors}/authentication.interceptor.ts (91%) diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 79d14e898..6a8fb6850 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -79,7 +79,7 @@ import { AddContentComponent } from './components/pages/add-content/add-content. import { ParticipantContentCarouselPageComponent } from './components/pages/participant-content-carousel-page/participant-content-carousel-page.component'; import { ParticipantTextContentComponent } from './components/fragments/participant-text-content/participant-text-content.component'; import { CreatorTextContentComponent } from './components/fragments/creator-text-content/creator-text-content.component'; -import { AuthenticationInterceptor } from './authentication.interceptor'; +import { AuthenticationInterceptor } from './interceptors/authentication.interceptor'; @NgModule({ declarations: [ diff --git a/src/app/authentication.interceptor.ts b/src/app/interceptors/authentication.interceptor.ts similarity index 91% rename from src/app/authentication.interceptor.ts rename to src/app/interceptors/authentication.interceptor.ts index 071cba6ae..7dae5fee7 100644 --- a/src/app/authentication.interceptor.ts +++ b/src/app/interceptors/authentication.interceptor.ts @@ -1,8 +1,8 @@ import { Injectable } from '@angular/core'; import { HttpErrorResponse, HttpEvent, HttpHandler, HttpInterceptor, HttpRequest, HttpResponse } from '@angular/common/http'; import 'rxjs/add/operator/do'; -import { AuthenticationService } from './authentication.service'; -import { NotificationService } from './notification.service'; +import { AuthenticationService } from '../authentication.service'; +import { NotificationService } from '../notification.service'; import { Router } from '@angular/router'; import { Observable } from 'rxjs/Observable'; -- GitLab