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