mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
Revert path param changes for POST
This commit is contained in:
parent
ec662d01d0
commit
d09132dd60
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user