Skip to content

Commit

Permalink
Enable generated etapi client
Browse files Browse the repository at this point in the history
  • Loading branch information
mm21 committed May 5, 2023
1 parent 5ea8226 commit 79d4dcf
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 57 deletions.
2 changes: 1 addition & 1 deletion src/etapi/attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function register(router) {
'isInheritable': [v.notNull, v.isBoolean]
};

eu.route(router, 'post' ,'/etapi/attributes', (req, res, next) => {
eu.route(router, 'post' ,'/etapi/attributes/:attributeId', (req, res, next) => {
if (req.body.type === 'relation') {
eu.getAndCheckNote(req.body.value);
}
Expand Down
2 changes: 1 addition & 1 deletion src/etapi/branches.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function register(router) {
'isExpanded': [v.notNull, v.isBoolean]
};

eu.route(router, 'post' ,'/etapi/branches', (req, res, next) => {
eu.route(router, 'post' ,'/etapi/branches/:branchId', (req, res, next) => {
const params = {};

eu.validateAndPatch(params, req.body, ALLOWED_PROPERTIES_FOR_CREATE_BRANCH);
Expand Down
Loading

0 comments on commit 79d4dcf

Please sign in to comment.