Files
adamantium/slices/admin/actions/posts/update.rb

15 lines
290 B
Ruby

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