added update profile modal, adjusted forms, and fixed account update in backend

This commit is contained in:
2026-01-03 19:46:31 +01:00
parent f3a2c98643
commit f71d1ff9ac
12 changed files with 270 additions and 17 deletions

10
src/api/account.ts Normal file
View File

@@ -0,0 +1,10 @@
import { UpdateUserResponse } from '../types';
import { apiFetch } from './client'
// import type { User } from '../types'
export function updateAccount(username: string, email: string, password: string) {
return apiFetch<UpdateUserResponse>('/account', {
method: 'PUT',
body: JSON.stringify({ username, email, password }),
});
}