Add publish action

This commit is contained in:
2023-05-31 22:16:55 +10:00
parent 6cb8e7680d
commit a4a1fc4b63

View File

@@ -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