Correct admin dashboard link and server endpoints

This commit is contained in:
atakpu ikhide godson 2020-12-29 12:49:54 +01:00
parent bd2b7f8ae9
commit 27d925c29b
3 changed files with 4 additions and 15 deletions

View File

@ -18,8 +18,8 @@ let apiUrl = window.location.origin + '/api';
let dashboardUrl = window.location.origin + '/dashboard';
let adminDashboardUrl = window.location.origin + '/admin';
let accountsUrl = window.location.origin + '/accounts';
let helmChartUrl = window.location.origin + '/helm-chart';
let docsUrl = window.location.origin + '/api-docs';
let helmChartUrl = window.location.origin + '/chart';
let docsUrl = window.location.origin + '/docs';
const licensingUrl = env('LICENSE_URL');
if (

View File

@ -82,10 +82,7 @@ app.use(function(req, res, next) {
app.set('port', process.env.PORT || 1445);
//version
app.get(
['/api-docs/version', '/api-docs/api/version', '/version', '/api/version'],
version
);
app.get(['/docs/version', '/version'], version);
// set the view engine to ejs
app.set('views', path.join(__dirname, 'views'));

View File

@ -92,15 +92,7 @@ app.use(
);
//Application version
app.get(
[
'/helm-chart/version',
'/helm-chart/api/version',
'/version',
'/api/version',
],
version
);
app.get(['/chart/version', '/version'], version);
app.listen(app.get('port'), function() {
// eslint-disable-next-line no-console