17 lines
310 B
JavaScript
17 lines
310 B
JavaScript
'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}
|
|
}
|
|
}
|