From d09132dd60fa8456be05e274776b4c040eaac053 Mon Sep 17 00:00:00 2001 From: mm21 <8033134+mm21@users.noreply.github.com> Date: Sun, 7 May 2023 00:32:42 +0000 Subject: [PATCH] Revert path param changes for POST --- src/etapi/attributes.js | 2 +- src/etapi/branches.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/etapi/attributes.js b/src/etapi/attributes.js index b4f10c93f..74d3dbfa9 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.js index 6258de95c..6c83c0928 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);