13 lines
288 B
JavaScript
13 lines
288 B
JavaScript
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
|