feat: add update password
ci-api / test (push) Successful in 24m40s
ci-web / test (push) Canceled after 8m5s

This commit is contained in:
Nuxgrid
2026-07-29 14:18:14 +02:00
parent eda6c0e98a
commit 5a0c1bfe3f
5 changed files with 105 additions and 2 deletions
+5 -1
View File
@@ -104,7 +104,9 @@ export interface UpdateUsername {
username: string
}
export interface UpdatePassword {
password: string
}
// --- Endpoints ---
export const api = {
@@ -155,4 +157,6 @@ 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 })
}