api call pfad angepasst
All checks were successful
Angular Build & Deploy / deploy (push) Successful in 45s

This commit is contained in:
2026-01-07 13:52:05 +01:00
parent fe1bbc136f
commit 13f43d4575
2 changed files with 4 additions and 4 deletions

View File

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

View File

@@ -98,7 +98,7 @@ export class Produktbaum {
meldungen : Meldung[] = []
aprioriProdukte : Produktbaustein[] = [];
apriori(){
this.http.post<any[]>('/ProductsRequest', { "stichtag": "2022-02-11" })
this.http.post<any[]>('/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<any[]>('/CalculateRequest', request )
this.http.post<any[]>('/api/CalculateRequest', request )
.subscribe(result => {
this.produkte = [];
this.attribute = [];