Skip to content
Snippets Groups Projects
Commit c211fe38 authored by Hugo SUBTIL's avatar Hugo SUBTIL
Browse files

fix: api config to make to work both with backend and mock api

parent 3ac2dc9e
No related branches found
No related tags found
1 merge request!31Recette
{
"/api": {
"target": "http://localhost:3000"
"/api/*": {
"target": "http://localhost:3000",
"secure": false,
"changeOrigin": true,
"logLevel": "debug",
"pathRewrite": {
"^/api": ""
}
},
"/base-adresse/base-adresse-nationale/streets": {
"target": "https://passerelle.formulaireextranet.grandlyon.com",
......
......@@ -18,7 +18,7 @@ export class StructureService {
constructor(private http: HttpClient) {}
public getStructures(filters: Filter[]): Observable<Structure[]> {
return this.http.get('/api/Structures').pipe(map((data: any[]) => data.map((item) => new Structure(item))));
return this.http.get('/api/structures').pipe(map((data: any[]) => data.map((item) => new Structure(item))));
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment