数据库插件
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
doc : "默认页面",
|
||||
path : "cms/index/",
|
||||
method : ["get", "post"],
|
||||
middleware: [],
|
||||
params : {
|
||||
"age": "int?"
|
||||
},
|
||||
return : {},
|
||||
fun : async (ctx, app) => {
|
||||
const User = await app.table("User").where(where).findAll()
|
||||
ctx.body = {res}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user