mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-23 07:42:10 +00:00
Correct admin dashboard link and server endpoints
This commit is contained in:
parent
bd2b7f8ae9
commit
27d925c29b
@ -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 (
|
||||
|
@ -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'));
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user