This commit is contained in:
les
2021-07-27 17:22:56 +02:00
parent 9e696c5884
commit ddd5e05ed4
2 changed files with 2 additions and 2 deletions

View File

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

View File

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