Manage books page via admin area
This commit is contained in:
16
slices/admin/views/books/index.rb
Normal file
16
slices/admin/views/books/index.rb
Normal file
@@ -0,0 +1,16 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Admin
|
||||
module Views
|
||||
module Books
|
||||
class Index < Admin::View
|
||||
|
||||
include Deps["repos.book_repo"]
|
||||
|
||||
expose :books do
|
||||
book_repo.list_all
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
10
slices/admin/views/books/update.rb
Normal file
10
slices/admin/views/books/update.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Admin
|
||||
module Views
|
||||
module Books
|
||||
class Update < Admin::View
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user