后端搭建起来
This commit is contained in:
12
server/app/controller/custom.js
Normal file
12
server/app/controller/custom.js
Normal file
@@ -0,0 +1,12 @@
|
||||
const Controller = require("egg").Controller
|
||||
|
||||
class Custom extends Controller {
|
||||
async list() {
|
||||
const {ctx: {query}} = this
|
||||
const result = await this.service.db.list("node_custom_config", query)
|
||||
this.ctx.status = 200
|
||||
this.ctx.body = result
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Custom
|
||||
Reference in New Issue
Block a user