You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by an...@apache.org on 2019/09/20 08:33:47 UTC

[incubator-dlab] branch DLAB-1056 updated: added default api url key to production env variables

This is an automated email from the ASF dual-hosted git repository.

ankovalyshyn pushed a commit to branch DLAB-1056
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git


The following commit(s) were added to refs/heads/DLAB-1056 by this push:
     new 097fe95  added default api url key to production env variables
097fe95 is described below

commit 097fe956c2e7ef60fad8ab48cbff40404034192b
Author: Andriana Kovalyshyn <An...@epam.com>
AuthorDate: Fri Sep 20 11:33:34 2019 +0300

    added default api url key to production env variables
---
 .../webapp/src/app/core/services/applicationServiceFacade.service.ts   | 2 +-
 .../src/main/resources/webapp/src/environments/environment.prod.ts     | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/services/self-service/src/main/resources/webapp/src/app/core/services/applicationServiceFacade.service.ts b/services/self-service/src/main/resources/webapp/src/app/core/services/applicationServiceFacade.service.ts
index d4ba4db..6c94e94 100644
--- a/services/self-service/src/main/resources/webapp/src/app/core/services/applicationServiceFacade.service.ts
+++ b/services/self-service/src/main/resources/webapp/src/app/core/services/applicationServiceFacade.service.ts
@@ -655,7 +655,7 @@ export class ApplicationServiceFacade {
 
   private buildRequest(method: RequestMethod, url_path: string, body: any, opt?) {
     // added to simplify development process
-    const url = (environment.production) ? url_path : API_URL + url_path;
+    const url = environment.production ? url_path : API_URL + url_path;
 
     if (method === RequestMethod.Post) {
       return this.http.post(url, body, opt);
diff --git a/services/self-service/src/main/resources/webapp/src/environments/environment.prod.ts b/services/self-service/src/main/resources/webapp/src/environments/environment.prod.ts
index a03b094..2cc9d53 100644
--- a/services/self-service/src/main/resources/webapp/src/environments/environment.prod.ts
+++ b/services/self-service/src/main/resources/webapp/src/environments/environment.prod.ts
@@ -17,5 +17,6 @@
  * under the License.
  */
 export const environment = {
-  production: true
+  production: true,
+  apiUrl: 'default'
 };


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org