Projekt

Obecné

Profil

« Předchozí | Další » 

Revize e4a04714

Přidáno uživatelem Václav Jirák před téměř 6 roky(ů)

Re #7264 HTTP Post test fixed

Zobrazit rozdíly:

frontend/src/app/app.component.ts
19 19
    this.httpClient.get(environment.apiUrl + 'test', { responseType: 'text' })
20 20
      .subscribe(data => this.getTestResponse = data);
21 21

  
22
    this.httpClient.get(environment.apiUrl + 'test', { responseType: 'text' })
22
    this.httpClient.post(environment.apiUrl + 'test', {}, { responseType: 'text' })
23 23
      .subscribe(data => this.postTestResponse = data);
24 24

  
25 25
    this.httpClient.get(environment.apiUrl + 'hello', { responseType: 'text' })
frontend/src/environments/environment.prod.ts
1 1
export const environment = {
2 2
  production: true,
3
  apiUrl: 'http://192.168.99.100:9080/' // TODO Change to production url
3
  apiUrl: 'http://localhost:9080/' // TODO Change to production url
4 4
};
frontend/src/environments/environment.ts
1 1
export const environment = {
2 2
  production: false,
3
  apiUrl: 'http://192.168.99.100:9080/'
3
  apiUrl: 'http://localhost:9080/'
4 4
};

Také k dispozici: Unified diff