Refactor app in to its own slice
This commit is contained in:
17
slices/main/views/podcasts/index.rb
Normal file
17
slices/main/views/podcasts/index.rb
Normal file
@@ -0,0 +1,17 @@
|
||||
module Main
|
||||
module Views
|
||||
module Podcasts
|
||||
class Index< Main::View
|
||||
include Deps["repos.podcast_repo", "repos.podcast_scrobble_repo"]
|
||||
|
||||
expose :podcasts do
|
||||
podcast_repo.listing
|
||||
end
|
||||
|
||||
expose :listens do
|
||||
podcast_scrobble_repo.listing
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user