Fixed APP_BASE_HREF.

This commit is contained in:
Roger Far 2023-03-08 20:36:34 -07:00
parent b6c79d32a7
commit 805233d73b

View file

@ -1,4 +1,5 @@
import { ClipboardModule } from '@angular/cdk/clipboard';
import { APP_BASE_HREF } from '@angular/common';
import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
import { NgModule } from '@angular/core';
import { FlexLayoutModule } from '@angular/flex-layout';
@ -51,7 +52,11 @@ curray();
FlexLayoutModule,
ClipboardModule,
],
providers: [FileSizePipe, { provide: HTTP_INTERCEPTORS, useClass: AuthInterceptor, multi: true }],
providers: [
FileSizePipe,
{ provide: HTTP_INTERCEPTORS, useClass: AuthInterceptor, multi: true },
{ provide: APP_BASE_HREF, useValue: (window as any)['_app_base'] || '/' },
],
bootstrap: [AppComponent],
})
export class AppModule {}