forked from Cookies_Github_mirror/AquaDX
[+] Implement user settings
This commit is contained in:
@@ -121,6 +121,8 @@ export const USER = {
|
||||
},
|
||||
keychip: (): Promise<string> =>
|
||||
post('/api/v2/user/keychip', {}).then(it => it.keychip),
|
||||
setting: (key: string, value: string) =>
|
||||
post('/api/v2/user/setting', { key: key === 'password' ? 'pwHash' : key, value }),
|
||||
isLoggedIn,
|
||||
ensureLoggedIn,
|
||||
}
|
||||
@@ -147,4 +149,4 @@ export const GAME = {
|
||||
export const DATA = {
|
||||
allMusic: (game: GameName): Promise<AllMusic> =>
|
||||
fetch(`${DATA_HOST}/d/${game}/00/all-music.json`).then(it => it.json())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user