added update profile modal, adjusted forms, and fixed account update in backend
This commit is contained in:
10
src/api/account.ts
Normal file
10
src/api/account.ts
Normal 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 }),
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user