minor
This commit is contained in:
@@ -34,7 +34,7 @@ oauth.use((req, res) => res.sendStatus(404))
|
||||
|
||||
oauth.use((err, req, res, next) => {
|
||||
const error_msg = err.toString()
|
||||
log.error('[OAUTH USE]', error_msg)
|
||||
log.error('[OAUTH USE]' + error_msg)
|
||||
res.status(500).send(error_msg)
|
||||
})
|
||||
|
||||
|
||||
@@ -55,11 +55,11 @@ app.get('/feed/:type', cors(), exportController.export)
|
||||
app.use('/.well-known', webfinger)
|
||||
app.use('/federation', federation)
|
||||
|
||||
// api!
|
||||
app.use(cookieParser())
|
||||
|
||||
// fill req.user if request is authenticated
|
||||
app.use(auth.fillUser)
|
||||
// api!
|
||||
app.use('/api', api)
|
||||
app.use('/oauth', oauth)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user