API Url change and redirection
This commit is contained in:
parent
181afda2ed
commit
539fae5496
@ -235,7 +235,7 @@ try {
|
||||
else
|
||||
{
|
||||
//let result= 5;
|
||||
//window.redirect('/');
|
||||
res.redirect('/api-index');
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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>-->
|
||||
|
@ -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> -->
|
||||
|
@ -36,7 +36,7 @@ const siteRoutes: Routes = [
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'api-view',
|
||||
path: 'api-index',
|
||||
component: ApiViewComponent
|
||||
}
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user