From f4b15e776041e631380e4e1dbfbd106986529a66 Mon Sep 17 00:00:00 2001 From: Yamaguchi Date: Tue, 30 Apr 2024 20:48:58 +0900 Subject: [PATCH] Fix backend url * BackendService generates urls such as 'http://example.com//api/blocks', but these url doesnt work with AWS ALB --- frontend/src/app/backend.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/backend.service.ts b/frontend/src/app/backend.service.ts index e6b7074..a8057c4 100644 --- a/frontend/src/app/backend.service.ts +++ b/frontend/src/app/backend.service.ts @@ -108,7 +108,7 @@ export class BackendService { private request(url: string, params?: HttpParams): Observable { return this.getConfig().pipe( mergeMap((config: Config) => { - return this.http.get(`${config.backendUrl}/${url}`, { params }); + return this.http.get(`${config.backendUrl}${url}`, { params }); }) ); }