Allow editing of posts

This commit is contained in:
2023-09-16 13:25:56 +10:00
parent 3f6e333423
commit 9dc78255cf
5 changed files with 44 additions and 4 deletions

View File

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