From f4f426a344290bb0d9afbfd4d696ac37ff7a149d Mon Sep 17 00:00:00 2001 From: ale Date: Mon, 30 Sep 2024 04:10:42 +0200 Subject: [PATCH] api inbox --- server.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server.js b/server.js index 1e7f308..bf94d21 100644 --- a/server.js +++ b/server.js @@ -139,7 +139,9 @@ api(app, apex, client) apiswagger(app, client) swagger(app) app.use(express.static('dist')) - .use(Object.keys(routes).map(route => routes[route]), (req, res) => { + .use('/u/' + constant.nick, (req, res) => { + res.redirect('/api/inbox') + }).use(Object.keys(routes).map(route => routes[route]), (req, res) => { res.redirect('/') }).use((err, req, res, next) => { if (res.headersSent) {