api inbox
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
ale 2024-09-30 04:10:42 +02:00
parent e367ffc37c
commit f4f426a344

View File

@ -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) {