update ORM, refactor models, add Page API endpoints
This commit is contained in:
@@ -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'],
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user