Add initial dashboard entrypoint server side rendering routes

This commit is contained in:
Johannes Zellner
2025-07-11 11:16:03 +02:00
parent 148c0d9213
commit 66d1de0821
9 changed files with 87 additions and 7 deletions

View File

@@ -447,6 +447,14 @@ async function initializeExpressSync() {
router.post('/api/v1/oidc/clients/:clientId', json, token, authorizeAdmin, routes.oidcClients.load, routes.oidcClients.update);
router.del ('/api/v1/oidc/clients/:clientId', token, authorizeAdmin, routes.oidcClients.load, routes.oidcClients.del);
// dashboard assets. Only entry points are served up here, rest is via static assets from nginx
router.get ('/', routes.dashboard.renderIndex);
router.get ('/filemanager.html', routes.dashboard.renderFilemanager);
router.get ('/logs.html', routes.dashboard.renderLogs);
router.get ('/terminal.html', routes.dashboard.renderTerminal);
router.get ('/passwordreset.html', routes.dashboard.renderPasswordreset);
router.get ('/setupaccount.html', routes.dashboard.renderSetupaccount);
// upgrade handler
httpServer.on('upgrade', function (req, socket, head) {
// create a node response object for express