Admin post management

This commit is contained in:
2023-05-07 17:28:45 +10:00
parent 4fb1b2b166
commit d679ea1947
8 changed files with 110 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
module Admin
module Actions
module Posts
class Archive < Action
include Deps["repos.post_repo"]
def handle(req, res)
post_id = req.params[:id]
post_repo.archive(id: post_id)
end
end
end
end
end