Allow editing of posts
This commit is contained in:
14
slices/admin/actions/posts/update.rb
Normal file
14
slices/admin/actions/posts/update.rb
Normal 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
|
Reference in New Issue
Block a user