Skip to content

Commit

Permalink
Story #11854 (clean code): base url provided in module referential
Browse files Browse the repository at this point in the history
  • Loading branch information
laedanrex committed Jun 6, 2024
1 parent abba6c9 commit afbccce
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ui/ui-frontend/projects/referential/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ import { MissingTranslationHandler, TranslateLoader, TranslateModule } from '@ng
import { QuicklinkModule } from 'ngx-quicklink';
import { MultiTranslateHttpLoader } from 'ngx-translate-multi-http-loader';
import { AuthenticationModule, BytesPipe, VitamUICommonModule, VitamuiMissingTranslationHandler, WINDOW_LOCATION } from 'vitamui-library';
import { BASE_URL, ENVIRONMENT, InjectorModule } from '../../../vitamui-library/src/app/modules';
import { environment } from '../environments/environment';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
Expand All @@ -64,8 +65,9 @@ registerLocaleData(localeFr, 'fr');
@NgModule({
declarations: [AppComponent],
imports: [
AuthenticationModule.forRoot(),
CoreModule,
AuthenticationModule.forRoot(),
InjectorModule,
BrowserAnimationsModule,
BrowserModule,
VitamUICommonModule.forRoot(),
Expand All @@ -86,6 +88,8 @@ registerLocaleData(localeFr, 'fr');
providers: [
Title,
{ provide: LOCALE_ID, useValue: 'fr' },
{ provide: BASE_URL, useValue: './referential-api' },
{ provide: ENVIRONMENT, useValue: environment },
{ provide: WINDOW_LOCATION, useValue: window.location },
{ provide: MAT_RADIO_DEFAULT_OPTIONS, useValue: { color: 'primary' } },
BytesPipe,
Expand Down

0 comments on commit afbccce

Please sign in to comment.