private apiUrl = environment.apiBaseUrl === ''
Some checks failed
ci / build (push) Failing after 1m6s
Some checks failed
ci / build (push) Failing after 1m6s
? 'http://localhost:8080/game/jump' : environment.apiBaseUrl;
This commit is contained in:
parent
57e2016677
commit
2bb12bfc2b
1 changed files with 5 additions and 1 deletions
|
@ -1,9 +1,13 @@
|
|||
import { Injectable } from '@angular/core';
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
import { environment } from '../enviroments/environment.cluster';
|
||||
|
||||
@Injectable({ providedIn: 'root' })
|
||||
export class JumpService {
|
||||
private apiUrl = 'http://localhost:8080/game/jump';
|
||||
|
||||
private apiUrl = environment.apiBaseUrl === ''
|
||||
? 'http://localhost:8080/game/jump'
|
||||
: environment.apiBaseUrl;
|
||||
|
||||
constructor(private http: HttpClient) {}
|
||||
|
||||
|
|
Loading…
Reference in a new issue