Ver Fonte

👽 update API calls

jmacura há 4 anos atrás
pai
commit
33b337af20
1 ficheiros alterados com 3 adições e 3 exclusões
  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) => {