diff --git a/api/src/stores/user.ts b/api/src/stores/user.ts index 9110c80..a5987b9 100644 --- a/api/src/stores/user.ts +++ b/api/src/stores/user.ts @@ -73,6 +73,10 @@ export const useUserStore = defineStore({ }); }, + async deleteAvatar(user: FG.User) { + await api.delete(`/users/${user.userid}/avatar`) + }, + async getPermissions(force = false) { if (force || this.permissions.length === 0) { const { data } = await api.get('/roles/permissions');