1. add response message

2. add account schema
This commit is contained in:
Jay
2018-08-15 00:15:28 +08:00
parent c072d18c36
commit 15b54b9c87
5 changed files with 42 additions and 4 deletions
-1
View File
@@ -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