This commit is contained in:
pplokijuhyg 2019-12-26 10:50:02 +08:00
parent c2d1399ab0
commit 96cc06bdf7
5 changed files with 525 additions and 521 deletions

View File

@ -1,4 +1,7 @@
// 获取标签 // 获取标签
var getimg = async(ctx,next)=>{
console.log(ctx.query.data)
}
var getlist = async (ctx, next) => { var getlist = async (ctx, next) => {
await dbs.find('list').then((res) => { await dbs.find('list').then((res) => {
ctx.body = JSON.stringify(res) ctx.body = JSON.stringify(res)
@ -58,6 +61,7 @@ module.exports = {
'GET /getlist':getlist, 'GET /getlist':getlist,
'POST /addlist':addlist, 'POST /addlist':addlist,
'GET /getaddlist':getaddlist, 'GET /getaddlist':getaddlist,
'GET /dellist' : dellist 'GET /dellist' : dellist,
'GET /getdata' :getimg
} }