Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
Revert path param changes for POST
mm21d09132dd60fa
diff --git a/src/etapi/attributes.js b/src/etapi/attributes.jsindex b4f10c93f8..74d3dbfa9c 100644--- a/src/etapi/attributes.js+++ b/src/etapi/attributes.js@@ -20,7 +20,7 @@ function register(router) {'isInheritable': [v.notNull, v.isBoolean]};- eu.route(router, 'post' ,'/etapi/attributes/:attributeId', (req, res, next) => {+ eu.route(router, 'post' ,'/etapi/attributes', (req, res, next) => {if (req.body.type === 'relation') {eu.getAndCheckNote(req.body.value);}diff --git a/src/etapi/branches.js b/src/etapi/branches.jsindex 6258de95c5..6c83c09286 100644--- a/src/etapi/branches.js+++ b/src/etapi/branches.js@@ -21,7 +21,7 @@ function register(router) {'isExpanded': [v.notNull, v.isBoolean]};- eu.route(router, 'post' ,'/etapi/branches/:branchId', (req, res, next) => {+ eu.route(router, 'post' ,'/etapi/branches', (req, res, next) => {const params = {};eu.validateAndPatch(params, req.body, ALLOWED_PROPERTIES_FOR_CREATE_BRANCH);