Add books page

This commit is contained in:
2023-06-26 21:07:29 +10:00
parent c92b74b238
commit 2e019c00f4
13 changed files with 179 additions and 2 deletions

15
app/views/books/index.rb Normal file
View File

@@ -0,0 +1,15 @@
module Adamantium
module Views
module Books
class Index < Adamantium::View
include Deps["repos.post_repo"]
expose :books do
post_repo.books_listing.map do |book|
Decorators::Books::Decorator.new book
end
end
end
end
end
end