Files
adamantium/slices/admin/actions/posts/syndicate.rb
2023-06-12 16:48:37 +10:00

16 lines
315 B
Ruby

# frozen_string_literal: true
module Admin
module Actions
module Posts
class Syndicate < Admin::Action
include Deps["commands.posts.syndicate"]
def handle(req, res)
syndicate.call(post_id: req.params[:id], target: req.params[:target])
end
end
end
end
end