API Url change and redirection

This commit is contained in:
root 2019-09-11 12:02:48 +02:00
parent 181afda2ed
commit 539fae5496
5 changed files with 7 additions and 7 deletions

View File

@ -235,7 +235,7 @@ try {
else
{
//let result= 5;
//window.redirect('/');
res.redirect('/api-index');
}
}

View File

@ -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);
}
}

View File

@ -27,7 +27,7 @@
</div>
<!-- <div class="col-md-3 col-lg-4 text-right"> -->
<div class="col-sm-6 text-right ftr_lng">
<a routerLink="/api-view" class="text_underline mr-2" style="font-size: 1rem">API</a>
<a routerLink="/api-index" class="text_underline mr-2" style="font-size: 1rem">API</a>
<div class="dropdown ftr_dropdown pr-2 d-inline-block py-2">
<span class="flag" [ngStyle]="{ 'background-image': 'url(assets/img/' + translate.getCurrentLang() + '.jpg)'}"></span>
<!--<span class="flag" ngIf="translate.getCurrentLang() =='de'" style="background-image: url('assets/img/german.jpg')"></span>-->

View File

@ -1,7 +1,7 @@
<header class="headerbg">
<div class="home_tst_net mt-3 d-block d-sm-none position-relative">
<a href="https://epic.tech/" target="_blank" class="text_underline mr-2">Epic Cash</a>
<a routerLink="/api-view" class="text_underline mr-2">API</a>
<a routerLink="/api-index" class="text_underline mr-2">API</a>
<span>You are viewing </span>
<select (change)="onChangeNetwork($event.target.value)" class="langbut py-2 pr-3 pl-1">
<!-- <option value="Floonet" [selected]="'Floonet' == getNetwork()" >FlooNet</option> -->
@ -48,7 +48,7 @@
</li> -->
<li class="home_tst_net mr-3 d-none d-sm-inline-block position-relative">
<a href="https://epic.tech/" target="_blank" class="text_underline mr-2">Epic Cash</a>
<a routerLink="/api-view" class="text_underline mr-2">API</a>
<a routerLink="/api-index" class="text_underline mr-2">API</a>
<span>You are viewing </span>
<select (change)="onChangeNetwork($event.target.value)" class="langbut py-2 pr-3 pl-1">
<!-- <option value="Floonet" [selected]="'Floonet' == getNetwork()" >FlooNet</option> -->

View File

@ -36,7 +36,7 @@ const siteRoutes: Routes = [
},
},
{
path: 'api-view',
path: 'api-index',
component: ApiViewComponent
}
];