This commit is contained in:
parent
e367ffc37c
commit
f4f426a344
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user