chore: finish profile
ci-api / test (push) Failing after 11m37s
ci-web / test (push) Successful in 14m39s

This commit is contained in:
Nuxgrid
2026-07-29 14:50:31 +02:00
parent 5a0c1bfe3f
commit 6beabfb070
16 changed files with 137 additions and 527 deletions
+10 -2
View File
@@ -107,6 +107,11 @@ export interface UpdateUsername {
export interface UpdatePassword {
password: string
}
export interface TelegramInfo {
telegram: string
}
// --- Endpoints ---
export const api = {
@@ -157,6 +162,9 @@ export const api = {
request<DemoDetails>('POST', '/demos/details', { username }),
updateUsername: (username: string) =>
request<UpdateUsername>('POST', '/profile/username', { username }),
updatePassword: (password: string) =>
request<UpdatePassword>('POST', '/profile/password', { password })
updatePassword: (password: string) =>
request<UpdatePassword>('POST', '/profile/password', { password }),
getTelegram: () => request<TelegramInfo>('GET', '/profile/telegram'),
setTelegram: (telegram: string) =>
request<TelegramInfo>('POST', '/profile/telegram', { telegram }),
}