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);