Add more endpoints for now page

This commit is contained in:
2024-04-01 19:13:18 +11:00
parent 23bc0134d6
commit cbdc61c359
13 changed files with 128 additions and 28 deletions

View File

@@ -0,0 +1,16 @@
require "steam-api"
module Main
module Queries
module Posts
class RecentGames
include Deps["settings"]
def call
Steam.apikey = settings.steam_api_key
Steam::Player.recently_played_games(settings.steam_user_id).fetch("games", []).take(2)
end
end
end
end
end