Add reminder about unread bookmarks

This commit is contained in:
2024-02-23 08:31:12 +11:00
parent a8f74b1e04
commit 6978a3dfc6
8 changed files with 110 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
module Admin
module Actions
module Bookmarks
class MarkRead < Action
include Deps["repos.bookmark_repo"]
def handle(req, res)
bookmark_id = req.params[:id]
bookmark_repo.mark_read(id: bookmark_id)
end
end
end
end
end

View File

@@ -0,0 +1,15 @@
module Admin
module Actions
module Bookmarks
class MarkUnread < Action
include Deps["repos.bookmark_repo"]
def handle(req, res)
bookmark_id = req.params[:id]
bookmark_repo.mark_unread(id: bookmark_id)
end
end
end
end
end