Verified Commit ddd5e05e authored by les's avatar les
Browse files

minor

parent 9e696c58
......@@ -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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment