1import { provideHttpClient } from '@angular/common/http'; 2import { ApplicationConfig } from '@angular/core'; 3import { provideRouter } from '@angular/router'; 4 5import { routes } from './app.routes'; 6import { ACCESS_TOKEN, SERVICE_PORT } from './goldens.service'; 7 8const urlParams = new URLSearchParams(window.location.search); 9const token = urlParams.get('token'); 10const port = urlParams.get('port'); 11 12export const appConfig: ApplicationConfig = { 13 providers: [ 14 provideRouter(routes), 15 provideHttpClient(), 16 { provide: ACCESS_TOKEN, useValue: token }, 17 { provide: SERVICE_PORT, useValue: port }, 18 ], 19}; 20