feat(node): 添加自定义节点配置的 webhook 字段
- 在 node_custom_config 表单中新增 webhook 字段 - 通过 REST API 接口 /node/custom/addOrUpdate 添加或更新自定义节点配置时,支持 webhook 参数
This commit is contained in:
@@ -3,10 +3,10 @@ module.exports = {
|
|||||||
action: "/node/custom/addOrUpdate",
|
action: "/node/custom/addOrUpdate",
|
||||||
method: "post",
|
method: "post",
|
||||||
execute: (request, response) => {
|
execute: (request, response) => {
|
||||||
let {id, name, type, customPath, apps, createTime, dist, version, zipTime, download, error, extra} = request.body
|
let {id, name, type, customPath, apps, createTime, dist, version, zipTime, download, error, extra,webhook} = request.body
|
||||||
dbUtils.addOrUpdate({
|
dbUtils.addOrUpdate({
|
||||||
table: 'node_custom_config',
|
table: 'node_custom_config',
|
||||||
form: {id, name, type, customPath, apps, createTime, dist, version, zipTime, download, error, extra}
|
form: {id, name, type, customPath, apps, createTime, dist, version, zipTime, download, error, extra,webhook}
|
||||||
}).then(data => {
|
}).then(data => {
|
||||||
response.send({code: 0, data})
|
response.send({code: 0, data})
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
|
|||||||
Reference in New Issue
Block a user