Add model logic & api endpoint for reverting page versions
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing

This commit is contained in:
2020-11-06 12:42:52 -06:00
parent 5f5b750172
commit 37f9c09fe2
5 changed files with 96 additions and 1 deletions

View File

@@ -67,6 +67,9 @@ const index = {
// Save the data for the specified page
'/page/:PageId/save': ['controller::api:v1:Page.save_page'],
// Revert the page to a previous version
'/page/:PageId/versions/revert': ['controller::api:v1:Page.revert_version'],
// Save the node data for the specified page
'/page/:PageId/nodes/save': ['controller::api:v1:Page.save_nodes'],