feat: add profile update functionality and integrate it into the Security page

This commit is contained in:
Wikid82
2025-11-21 11:25:58 -05:00
parent 9914e20817
commit 8a0d7952a9
5 changed files with 200 additions and 26 deletions

View File

@@ -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
}