From 112f3cd2345d4b6c0c9ebdac7bbf3e22d7cca9e5 Mon Sep 17 00:00:00 2001 From: miwr Date: Thu, 17 Apr 2025 14:06:25 +0200 Subject: [PATCH] ${window.location.origin} --- src/app/jump.service.ts | 1 + src/enviroments/environment.local.ts | 2 +- src/enviroments/environment.ts | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/jump.service.ts b/src/app/jump.service.ts index c655e8a..aa778e6 100644 --- a/src/app/jump.service.ts +++ b/src/app/jump.service.ts @@ -10,6 +10,7 @@ export class JumpService { constructor(private http: HttpClient) {} registerJump() { + console.log("api: " + this.apiUrl) return this.http.get<{ totalJumps: number }>(this.apiUrl, {}); } } \ No newline at end of file diff --git a/src/enviroments/environment.local.ts b/src/enviroments/environment.local.ts index 7746075..b163a54 100644 --- a/src/enviroments/environment.local.ts +++ b/src/enviroments/environment.local.ts @@ -1,4 +1,4 @@ export const environment = { production: true, - apiBaseUrl: 'http://localhost:8080/game/jump' + apiBaseUrl: 'http://localhost:8080/silly-game-api/game/jump' }; \ No newline at end of file diff --git a/src/enviroments/environment.ts b/src/enviroments/environment.ts index be0ba93..e8294d8 100644 --- a/src/enviroments/environment.ts +++ b/src/enviroments/environment.ts @@ -1,4 +1,4 @@ export const environment = { production: true, - apiBaseUrl: 'http://silly-game-backend-service.silly-game.svc.cluster.local/game/jump' + apiBaseUrl: 'http://${window.location.origin}/silly-game-api/game/jump' }; \ No newline at end of file