From 13f43d4575a95998757a0cc044e3372fdd2ad6ff Mon Sep 17 00:00:00 2001 From: LukasJuraczka Date: Wed, 7 Jan 2026 13:52:05 +0100 Subject: [PATCH] api call pfad angepasst --- nginx.conf | 4 ++-- src/app/produktbaum/produktbaum.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 = [];