Manage books page via admin area

This commit is contained in:
2023-12-22 20:37:12 +11:00
parent 6a3409746e
commit 900fdea472
8 changed files with 87 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
# frozen_string_literal: true
module Admin
module Actions
module Books
class Index < Admin::Action
def handle(request, response)
end
end
end
end
end

View File

@@ -0,0 +1,17 @@
# frozen_string_literal: true
module Admin
module Actions
module Books
class Update < Admin::Action
include Deps["repos.book_repo"]
def handle(req, resp)
book_repo.update(req.params[:id], book_status: req.params[:book_status])
resp.status = 204
end
end
end
end
end