[+] Implement game options

This commit is contained in:
Azalea
2024-04-02 00:07:50 -04:00
parent ba13bfd9ad
commit 876a0bd108
4 changed files with 73 additions and 13 deletions

View File

@@ -157,6 +157,6 @@ export const DATA = {
export const SETTING = {
get: (): Promise<GameOption[]> =>
post('/api/v2/settings/get', {}),
set: (key: string, value: string) =>
post('/api/v2/settings/set', { key, value }),
set: (key: string, value: any) =>
post('/api/v2/settings/set', { key, value: `${value}` }),
}