diff --git a/webapp/src/app/shared/services/persons.service.ts b/webapp/src/app/shared/services/persons.service.ts index feb5490b..647bad98 100644 --- a/webapp/src/app/shared/services/persons.service.ts +++ b/webapp/src/app/shared/services/persons.service.ts @@ -22,7 +22,7 @@ export class PersonsService { private http: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | null, ) { - this.basePath = basePath ?? ''; + this.basePath = basePath ?? 'http://localhost:8000'; } getPersons( @@ -38,6 +38,6 @@ export class PersonsService { params = params.set('query', query.trim()); } - return this.http.get(`${this.basePath}/persons`, { params }); + return this.http.get(`${this.basePath}/api/inse-service/persons`, { params }); } }