Skip to content
Snippets Groups Projects
Commit 82ac76cb authored by Louis's avatar Louis :fire:
Browse files

Supported borked old apps

parent dca92e1c
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,7 @@ const handlebars = require('./vendor/koa-handlebars')
const { fs, config } = require('bootstrap')
const { extractDevice } = require('./http/middleware/deviceProperties')
const app = new Koa()
app.keys = [config('app.key')]
......
......@@ -46,7 +46,12 @@ api.post('/login', controller('api/auth', 'login'))
api.get('/self', controller('api/user', 'self'))
api.put('/self/:property', controller('api/user', 'updateOne'))
const apiApi = new Router({ prefix: '/api' })
apiApi.use(api.routes())
apiApi.use(api.allowedMethods())
module.exports = {
api,
web,
apiApi,
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment