Merge branch 'master' into release
This commit is contained in:
commit
1607f22ac6
@ -4,7 +4,8 @@ const {
|
||||
chkObject,
|
||||
resObject,
|
||||
APIError,
|
||||
genError
|
||||
genError,
|
||||
checkSession
|
||||
} = require('@libs/route-utils')
|
||||
const DB = require('@libs/database')
|
||||
const r = new Router()
|
||||
@ -54,6 +55,10 @@ r.post('/login', koaBody(), async (c, n) => {
|
||||
c.obj = resObject('Success')
|
||||
})
|
||||
|
||||
r.get('/session', checkSession, async (c, n) => {
|
||||
c.obj = resObject('Success')
|
||||
})
|
||||
|
||||
r.use('/twitch', require('./twitch').routes())
|
||||
|
||||
module.exports = r
|
||||
|
Loading…
Reference in New Issue
Block a user