Simplified the add child mechanism, by using a query parameter ?parent=nid

(instead of specific node/{nid}/add_child/page url)
Fixed implementation of `CMS_NODE_API.is_node_a_parent_of (..)',
  and improved parent validity checking against cycle.
This commit is contained in:
2015-09-09 23:04:08 +02:00
parent 438259033a
commit 18e159ad3c
7 changed files with 48 additions and 58 deletions

View File

@@ -207,10 +207,6 @@ feature -- Access: router
a_router.handle ("/node/{id}/delete", l_node_handler, a_router.methods_get_post)
a_router.handle ("/node/{id}/trash", l_node_handler, a_router.methods_get_post)
-- Add child
a_router.handle ("/node/{id}/add_child/{type}", l_node_handler, a_router.methods_get_post)
a_router.handle ("/node/{id}", l_node_handler, a_router.methods_get)
-- For now: no REST API handling... a_router.methods_get_put_delete + a_router.methods_get_post)