feat: add profile update functionality and integrate it into the Security page
This commit is contained in:
@@ -17,3 +17,8 @@ export const regenerateApiKey = async (): Promise<{ api_key: string }> => {
|
||||
const response = await client.post('/user/api-key')
|
||||
return response.data
|
||||
}
|
||||
|
||||
export const updateProfile = async (data: { name: string; email: string }): Promise<{ message: string }> => {
|
||||
const response = await client.post('/user/profile', data)
|
||||
return response.data
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user