Add API endpoint for moving page nodes in tree
This commit is contained in:
@@ -6,7 +6,6 @@ class ApiRoute extends Middleware {
|
||||
}
|
||||
|
||||
async test(req, res, next, { allow_public = false }) {
|
||||
console.log({allow_public})
|
||||
// If we have an authenticated session, just continue
|
||||
if ( req.is_auth ) {
|
||||
return next()
|
||||
|
||||
@@ -13,6 +13,9 @@ module.exports = exports = {
|
||||
},
|
||||
|
||||
post: {
|
||||
|
||||
'/move-node': [
|
||||
['middleware::auth:ApiRoute', { allow_public: true }],
|
||||
'controller::api:v1:Menu.move_node',
|
||||
],
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user