diff --git a/slices/admin/actions/posts/publish.rb b/slices/admin/actions/posts/publish.rb new file mode 100644 index 0000000..17cc4ab --- /dev/null +++ b/slices/admin/actions/posts/publish.rb @@ -0,0 +1,16 @@ +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 \ No newline at end of file