This commit is contained in:
wy373226722 2017-04-26 22:34:06 +08:00
parent 90dc5d24d2
commit c83ad71916
2 changed files with 9 additions and 0 deletions

7
src/controllers/zwj.js Normal file
View File

@ -0,0 +1,7 @@
export let Post = async function (ctx) {
console.log(ctx.request.body)
}
export let Get = async function (ctx) {
ctx.body = '<html>詹文杰' + ctx.query.sex + '</html>'
}

View File

@ -12,5 +12,7 @@ router
.post('/api/:name', controllers.api.Post)
.put('/api/:name', controllers.api.Put)
.del('/api/:name', controllers.api.Delect)
.get('/zwj/name', controllers.zwj.Get)
.post('/zwj/name', controllers.zwj.Post)
module.exports = router