diff options
author | Shaaban Ebrahim <shaaban.eltanany.ext@orange.com> | 2019-10-09 18:12:44 +0200 |
---|---|---|
committer | Shaaban Ebrahim <shaaban.eltanany.ext@orange.com> | 2019-10-09 18:17:49 +0200 |
commit | 6c6ec71317d746bd744cd510a5da79956b8d176c (patch) | |
tree | a4dce669e7060e40ce6a90efb7ff0bb309bfb1c1 /cds-ui/server/src/controllers/blueprint-rest.controller.ts | |
parent | 809993fe658026f4cb953e49ab0331e2d4e5c8f8 (diff) |
Remove Controller API url and use blueprintProcessorApi url instead
Issue-ID: CCSDK-1793
Signed-off-by: Shaaban Eltanany <shaaban.eltanany.ext@orange.com>
Change-Id: Ic22a886bb7018ec09c557166e3ebd69196713d4c
Diffstat (limited to 'cds-ui/server/src/controllers/blueprint-rest.controller.ts')
-rw-r--r-- | cds-ui/server/src/controllers/blueprint-rest.controller.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cds-ui/server/src/controllers/blueprint-rest.controller.ts b/cds-ui/server/src/controllers/blueprint-rest.controller.ts index c73f7a6f8..789589837 100644 --- a/cds-ui/server/src/controllers/blueprint-rest.controller.ts +++ b/cds-ui/server/src/controllers/blueprint-rest.controller.ts @@ -48,7 +48,7 @@ import { BlueprintService } from '../services'; import * as fs from 'fs'; import * as multiparty from 'multiparty'; import * as request_lib from 'request'; -import { controllerApiConfig, processorApiConfig, appConfig } from '../config/app-config'; +import { processorApiConfig, appConfig } from '../config/app-config'; import { bluePrintManagementServiceGrpcClient } from '../clients/blueprint-management-service-grpc-client'; export class BlueprintRestController { @@ -220,7 +220,7 @@ export class BlueprintRestController { } async uploadFileToBlueprintController(file: multiparty.File, uri: string, response: Response): Promise<Response> { - return this.uploadFileToBlueprintService(file, controllerApiConfig.http.url + uri, controllerApiConfig.http.authToken, response); + return this.uploadFileToBlueprintService(file, processorApiConfig.http.url + uri, processorApiConfig.http.authToken, response); } async uploadFileToBlueprintProcessor(file: multiparty.File, uri: string, response: Response): Promise<Response> { @@ -267,7 +267,7 @@ export class BlueprintRestController { } async downloadFileFromBlueprintController(uri: string, response: Response): Promise<Response> { - return this.downloadFileFromBlueprintService(controllerApiConfig.http.url + uri, controllerApiConfig.http.authToken, response); + return this.downloadFileFromBlueprintService(processorApiConfig.http.url + uri, processorApiConfig.http.authToken, response); } async downloadFileFromBlueprintService(url: string, authToken: string, response: Response): Promise<Response> { |