Files
adamantium/slices/admin/actions/posts/publish.rb
2023-06-01 20:42:29 +10:00

15 lines
263 B
Ruby

module Admin
module Actions
module Posts
class Publish < Action
include Deps["repos.post_repo"]
def handle(req, res)
post_id = req.params[:id]
post_repo.publish(id: post_id)
end
end
end
end
end