${window.location.origin}
All checks were successful
ci / build (push) Successful in 1m17s

This commit is contained in:
miwr 2025-04-17 14:06:25 +02:00
parent 9a96f919c8
commit 112f3cd234
3 changed files with 3 additions and 2 deletions

View file

@ -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, {});
}
}

View file

@ -1,4 +1,4 @@
export const environment = {
production: true,
apiBaseUrl: 'http://localhost:8080/game/jump'
apiBaseUrl: 'http://localhost:8080/silly-game-api/game/jump'
};

View file

@ -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'
};