Task #21 - add page controller and page/node api endpoints

This commit is contained in:
garrettmills
2020-02-08 11:16:04 -06:00
parent 7c8bcd928f
commit 617a77b809
5 changed files with 152 additions and 3 deletions

View File

@@ -38,10 +38,12 @@ const index = {
get: {
'/hello_world': ['controller::api:v1:Misc.hello_world'],
'/page/:PageId': ['controller::api:v1:Page.get_page'],
'/page/:PageId/nodes': ['controller::api:v1:Page.get_nodes'],
},
post: {
'/page/:PageId/save': ['controller::api:v1:Page.save_page'],
'/page/:PageId/nodes/save': ['controller::api:v1:Page.save_nodes'],
},
}