feat(games): add games to disable + path
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import type {
|
||||
Game,
|
||||
SteamCollection,
|
||||
SteamCollectionItem,
|
||||
Submission,
|
||||
@@ -99,6 +100,11 @@ export class ApiService {
|
||||
}
|
||||
}
|
||||
|
||||
// Games endpoint
|
||||
async getGames(): Promise<ApiResponse<Game[]>> {
|
||||
return this.request<Game[]>('/games/')
|
||||
}
|
||||
|
||||
// Puzzle endpoints
|
||||
async getPuzzles(): Promise<ApiResponse<SteamCollectionItem[]>> {
|
||||
return this.request<SteamCollectionItem[]>('/submissions/puzzles')
|
||||
|
||||
Reference in New Issue
Block a user