From 539fae5496ffe2e5c4f51a69c0c76b9c64070e03 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 11 Sep 2019 12:02:48 +0200 Subject: [PATCH] API Url change and redirection --- server.ts | 2 +- server/global.ts | 4 ++-- src/app/shared/components/footer/footer.component.html | 2 +- src/app/shared/components/header/header.component.html | 4 ++-- src/app/view/view-routing.module.ts | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/server.ts b/server.ts index 542137c..7bd74b5 100644 --- a/server.ts +++ b/server.ts @@ -235,7 +235,7 @@ try { else { //let result= 5; - //window.redirect('/'); + res.redirect('/api-index'); } } diff --git a/server/global.ts b/server/global.ts index a1014f2..d148ebf 100644 --- a/server/global.ts +++ b/server/global.ts @@ -1,7 +1,7 @@ import * as redis from 'redis'; var REDIS_URL = process.env.REDIS_URL; export namespace Global { - export var network: string = 'Floonet'; + export var network: string = 'Testnet'; // connect to Redis export var client = redis.createClient(REDIS_URL); -} \ No newline at end of file +} diff --git a/src/app/shared/components/footer/footer.component.html b/src/app/shared/components/footer/footer.component.html index aee28de..da2cf45 100644 --- a/src/app/shared/components/footer/footer.component.html +++ b/src/app/shared/components/footer/footer.component.html @@ -27,7 +27,7 @@
- API + API