feat(node): 添加自定义节点配置的 webhook 字段

- 在 node_custom_config 表单中新增 webhook 字段
- 通过 REST API 接口 /node/custom/addOrUpdate 添加或更新自定义节点配置时,支持 webhook 参数
This commit is contained in:
aixianling
2025-01-08 15:41:30 +08:00
parent 3767f1938a
commit 8586b76ef2

View File

@@ -3,10 +3,10 @@ module.exports = {
action: "/node/custom/addOrUpdate",
method: "post",
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({
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 => {
response.send({code: 0, data})
}).catch(err => {