diff --git a/backend/app.ts b/backend/app.ts index 2473062..e7c3def 100644 --- a/backend/app.ts +++ b/backend/app.ts @@ -110,6 +110,9 @@ async function main() { app.get('/.ass.host', (req, res) => res.send(req.ass.host)); + // ! I did not want to do it like this how tf did I back myself into this shit + app.get('/admin', (req, res) => res.render('admin', { version: App.pkgVersion })) + // Routing app.use('/setup', (await import('./routers/setup.js')).router); app.use('/api', (await import('./routers/api.js')).router); diff --git a/frontend/setup.mts b/frontend/setup.mts index fcac8ba..0d8b70a 100644 --- a/frontend/setup.mts +++ b/frontend/setup.mts @@ -106,7 +106,7 @@ document.addEventListener('DOMContentLoaded', () => { message: string }) => { alert(data.message); - if (data.success) window.location.href = '/dashboard'; + if (data.success) window.location.href = '/admin'; }); }) .catch((err) => errAlert('POST to /setup failed!', err)) diff --git a/views/admin.pug b/views/admin.pug new file mode 100644 index 0000000..7c873a2 --- /dev/null +++ b/views/admin.pug @@ -0,0 +1,5 @@ +extends _base_ +block section + span admin +block content + h1.text-3xl Coming soon. \ No newline at end of file