72699: Hard redirect after log in

This commit is contained in:
Kristof De Langhe
2020-08-26 14:20:47 +02:00
parent cc618ebadd
commit 7367f91176
11 changed files with 171 additions and 51 deletions

View File

@@ -29,6 +29,8 @@ import { ServerLocaleService } from 'src/app/core/locale/server-locale.service';
import { LocaleService } from 'src/app/core/locale/locale.service';
import { HTTP_INTERCEPTORS } from '@angular/common/http';
import { ForwardClientIpInterceptor } from '../../app/core/forward-client-ip/forward-client-ip.interceptor';
import { HardRedirectService } from '../../app/core/services/hard-redirect.service';
import { ServerHardRedirectService } from '../../app/core/services/server-hard-redirect.service';
export function createTranslateLoader() {
return new TranslateJson5UniversalLoader('dist/server/assets/i18n/', '.json5');
@@ -88,6 +90,10 @@ export function createTranslateLoader() {
useClass: ForwardClientIpInterceptor,
multi: true
},
{
provide: HardRedirectService,
useClass: ServerHardRedirectService,
},
]
})
export class ServerAppModule {