Refactor app in to its own slice

This commit is contained in:
2024-02-17 10:40:36 +11:00
parent b809b132d3
commit a6078f882e
161 changed files with 16176 additions and 193 deletions

View File

@@ -0,0 +1,15 @@
require "time_math"
module Main
module Actions
module RecentlyPlayed
class Index < Action
include Deps["views.recently_played.index"]
def handle(req, res)
res.body = cache(key: "recently_played", content_proc: -> { index.call.to_str })
end
end
end
end
end