Add child page support.
- Add support to create a new node as a child of an existing node. - Update or add a parent for a given node. Fix delete and trash behavior: when a node is not published only the - author or admin see it. Fix Node and Page node Revisions.
This commit is contained in:
@@ -205,6 +205,10 @@ 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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user