16 lines
310 B
Ruby
16 lines
310 B
Ruby
require "time_math"
|
|
|
|
module Adamantium
|
|
module Actions
|
|
module RecentlyPlayed
|
|
class Index < Action
|
|
include Deps["views.recently_played.index"]
|
|
|
|
def handle(req, res)
|
|
res.body = cache(key: "recently_played", content: index.call.to_str)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|