update ORM, refactor models, add Page API endpoints

This commit is contained in:
garrettmills
2020-02-08 06:57:38 -06:00
parent 7f832c0d92
commit 26d6bf5721
8 changed files with 108 additions and 93 deletions

View File

@@ -25,7 +25,7 @@ const index = {
* handler's exec() method.
*/
middleware: [
'auth:UserOnly',
],
/*
@@ -37,11 +37,11 @@ const index = {
*/
get: {
'/hello_world': ['controller::api:v1:Misc.hello_world'],
'/page/:PageId': ['controller::api:v1:Page.get_page'],
},
post: {
'/page/save': ['middleware::auth:UserOnly', 'controller::api:v1:Misc.save_page']
'/page/:PageId/save': ['controller::api:v1:Page.save_page'],
},
}