feat: add password management, reading persistence on feed switch, and spin animation
This commit is contained in:
@@ -64,6 +64,13 @@ export const api = {
|
||||
return request<User>('/auth/me');
|
||||
},
|
||||
|
||||
async changePassword(old_password: string, new_password: string): Promise<{ message: string }> {
|
||||
return request<{ message: string }>('/auth/password', {
|
||||
method: 'PUT',
|
||||
body: JSON.stringify({ old_password, new_password }),
|
||||
});
|
||||
},
|
||||
|
||||
// Stats
|
||||
async getStats(): Promise<Stats> {
|
||||
return request<Stats>('/stats');
|
||||
|
||||
Reference in New Issue
Block a user