Archive bookmarks
This commit is contained in:
16
slices/admin/actions/bookmarks/archive.rb
Normal file
16
slices/admin/actions/bookmarks/archive.rb
Normal file
@@ -0,0 +1,16 @@
|
||||
module Admin
|
||||
module Actions
|
||||
module Bookmarks
|
||||
class Archive < Action
|
||||
|
||||
include Deps["repos.bookmark_repo"]
|
||||
|
||||
def handle(req, res)
|
||||
bookmark_id = req.params[:id]
|
||||
|
||||
bookmark_repo.archive(id: bookmark_id)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user