user info + max size

This commit is contained in:
2025-10-29 03:31:32 +01:00
parent 52723b200a
commit 961e14bd43
10 changed files with 210 additions and 53 deletions
+7 -1
View File
@@ -2,7 +2,8 @@ import type {
SteamCollectionItem,
Submission,
PuzzleResponse,
SubmissionFile
SubmissionFile,
UserInfo
} from '../types'
// API Configuration
@@ -179,6 +180,11 @@ export class ApiService {
async healthCheck(): Promise<ApiResponse<{ status: string; service: string }>> {
return this.request<{ status: string; service: string }>('/health')
}
// User info
async getUserInfo(): Promise<ApiResponse<UserInfo>> {
return this.request<UserInfo>('/user')
}
}
// Singleton instance