renamed account page to settings page and improved layout
This commit is contained in:
@@ -2,8 +2,8 @@ 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', {
|
||||
export function updateSettings(username: string, email: string, password: string) {
|
||||
return apiFetch<UpdateUserResponse>('/settings', {
|
||||
method: 'PUT',
|
||||
body: JSON.stringify({ username, email, password }),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user