This commit is contained in:
wy373226722 2017-04-27 09:13:07 +08:00
parent c83ad71916
commit 3df9391bc1
2 changed files with 0 additions and 9 deletions

View File

@ -1,7 +0,0 @@
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,7 +12,5 @@ router
.post('/api/:name', controllers.api.Post) .post('/api/:name', controllers.api.Post)
.put('/api/:name', controllers.api.Put) .put('/api/:name', controllers.api.Put)
.del('/api/:name', controllers.api.Delect) .del('/api/:name', controllers.api.Delect)
.get('/zwj/name', controllers.zwj.Get)
.post('/zwj/name', controllers.zwj.Post)
module.exports = router module.exports = router