diff --git a/nginx.conf b/nginx.conf index eb24e2c..907073f 100644 --- a/nginx.conf +++ b/nginx.conf @@ -7,7 +7,7 @@ server { try_files $uri $uri/ /index.html; } - location /ProductsRequest { + location /api/ProductsRequest { proxy_pass http://192.168.2.186:9090/ProductsRequest; proxy_set_header Host $host; @@ -15,7 +15,7 @@ server { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } - location /CalculateRequest { + location /api/CalculateRequest { proxy_pass http://192.168.2.186:9090/CalculateRequest; proxy_set_header Host $host; diff --git a/src/app/produktbaum/produktbaum.ts b/src/app/produktbaum/produktbaum.ts index 9fc7560..ba54362 100644 --- a/src/app/produktbaum/produktbaum.ts +++ b/src/app/produktbaum/produktbaum.ts @@ -98,7 +98,7 @@ export class Produktbaum { meldungen : Meldung[] = [] aprioriProdukte : Produktbaustein[] = []; apriori(){ - this.http.post('/ProductsRequest', { "stichtag": "2022-02-11" }) + this.http.post('/api/ProductsRequest', { "stichtag": "2022-02-11" }) .subscribe(result => { this.produkte = []; this.attribute = []; @@ -644,7 +644,7 @@ export class Produktbaum { async calculate(verkaufsprodukt: Produktbaustein) { const request = (await this.modelToJsonld(await this.buildRDFModel(verkaufsprodukt))); this.produkte = []; - this.http.post('/CalculateRequest', request ) + this.http.post('/api/CalculateRequest', request ) .subscribe(result => { this.produkte = []; this.attribute = [];