feat: add data export functionality to settings page and update admin reports table
- Introduced "Export Data" card in settings for exporting user data as a JSON file. - Added `exportData` method to `UserService` for handling data export requests. - Updated admin reports table with a new "Cible" column to display target information.
This commit is contained in:
@@ -53,4 +53,9 @@ export const UserService = {
|
||||
});
|
||||
return data;
|
||||
},
|
||||
|
||||
async exportData(): Promise<any> {
|
||||
const { data } = await api.get("/users/me/export");
|
||||
return data;
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user