Add editable pages

This commit is contained in:
2023-11-18 11:01:14 +11:00
parent 484259fab1
commit 53434423fd
25 changed files with 369 additions and 5 deletions

View File

@@ -0,0 +1,14 @@
module Admin
module Actions
module Pages
class Update < Action
include Deps["commands.pages.update"]
def handle(req, res)
update.call(page: req.params[:page])
res.redirect "/admin/pages/#{req.params[:page][:slug]}/edit"
end
end
end
end
end