Add photos

This commit is contained in:
2023-02-25 14:11:34 +11:00
parent a5e2cf28c8
commit e8220805a3
5 changed files with 39 additions and 1 deletions

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

@@ -0,0 +1,15 @@
module Adamantium
module Views
module Photos
class Index < Adamantium::View
include Deps["repos.post_repo"]
expose :photos do
post_repo.photo_listing.map do |post|
Decorators::Posts::Decorator.new(post)
end
end
end
end
end
end