Sfoglia il codice sorgente

👽 update API calls

jmacura 4 anni fa
parent
commit
33b337af20
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      src/adjuster/adjuster.service.ts

+ 3 - 3
src/adjuster/adjuster.service.ts

@@ -69,7 +69,7 @@ export class AdjusterService {
   calculateIndex(): void {
     this._raiInProcess = true;
     this.$http
-      .post(this.serviceBaseUrl + 'scores/cz', {
+      .post(this.serviceBaseUrl + 'cz/scores/', {
         factors: this.factors.map((f) => {
           return {
             factor: f.name,
@@ -152,7 +152,7 @@ export class AdjusterService {
   calculateClusters(): void {
     this._clusteringInProcess = true;
     this.$http
-      .post(this.serviceBaseUrl + 'clusters/cz', {
+      .post(this.serviceBaseUrl + 'cz/clusters/', {
         numberOfClusters: this.numberOfClusters,
         factors: this.factors.map((f) => {
           return {
@@ -280,7 +280,7 @@ export class AdjusterService {
   init(): void {
     this._loadInProcess = true;
     this.$http
-      .get(this.serviceBaseUrl + 'datasets/cz')
+      .get(this.serviceBaseUrl + 'cz/datasets/')
       .toPromise()
       .then((data: any) => {
         this.factors = data.map((dataset) => {