1. add response message
2. add account schema
This commit is contained in:
@@ -20,7 +20,6 @@ r.use(async (c, n) => {
|
||||
|
||||
r.post('/login', koaBody(), async (c, n) => {
|
||||
if (!c.chkBody('account', 'string') || !c.chkBody('password', 'string')) throw new Error('DataFormat')
|
||||
|
||||
})
|
||||
|
||||
module.exports = r
|
||||
|
||||
Reference in New Issue
Block a user