user info + max size
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user