api call pfad angepasst
All checks were successful
Angular Build & Deploy / deploy (push) Successful in 45s
All checks were successful
Angular Build & Deploy / deploy (push) Successful in 45s
This commit is contained in:
@@ -7,7 +7,7 @@ server {
|
|||||||
try_files $uri $uri/ /index.html;
|
try_files $uri $uri/ /index.html;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /ProductsRequest {
|
location /api/ProductsRequest {
|
||||||
proxy_pass http://192.168.2.186:9090/ProductsRequest;
|
proxy_pass http://192.168.2.186:9090/ProductsRequest;
|
||||||
|
|
||||||
proxy_set_header Host $host;
|
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-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
}
|
}
|
||||||
location /CalculateRequest {
|
location /api/CalculateRequest {
|
||||||
proxy_pass http://192.168.2.186:9090/CalculateRequest;
|
proxy_pass http://192.168.2.186:9090/CalculateRequest;
|
||||||
|
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ export class Produktbaum {
|
|||||||
meldungen : Meldung[] = []
|
meldungen : Meldung[] = []
|
||||||
aprioriProdukte : Produktbaustein[] = [];
|
aprioriProdukte : Produktbaustein[] = [];
|
||||||
apriori(){
|
apriori(){
|
||||||
this.http.post<any[]>('/ProductsRequest', { "stichtag": "2022-02-11" })
|
this.http.post<any[]>('/api/ProductsRequest', { "stichtag": "2022-02-11" })
|
||||||
.subscribe(result => {
|
.subscribe(result => {
|
||||||
this.produkte = [];
|
this.produkte = [];
|
||||||
this.attribute = [];
|
this.attribute = [];
|
||||||
@@ -644,7 +644,7 @@ export class Produktbaum {
|
|||||||
async calculate(verkaufsprodukt: Produktbaustein) {
|
async calculate(verkaufsprodukt: Produktbaustein) {
|
||||||
const request = (await this.modelToJsonld(await this.buildRDFModel(verkaufsprodukt)));
|
const request = (await this.modelToJsonld(await this.buildRDFModel(verkaufsprodukt)));
|
||||||
this.produkte = [];
|
this.produkte = [];
|
||||||
this.http.post<any[]>('/CalculateRequest', request )
|
this.http.post<any[]>('/api/CalculateRequest', request )
|
||||||
.subscribe(result => {
|
.subscribe(result => {
|
||||||
this.produkte = [];
|
this.produkte = [];
|
||||||
this.attribute = [];
|
this.attribute = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user