Revert path param changes for POST

This commit is contained in:
mm21 2023-05-07 00:32:42 +00:00
parent ec662d01d0
commit d09132dd60
2 changed files with 2 additions and 2 deletions

View File

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

View File

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