mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2025-06-20 00:25:17 +00:00
Can delete account image
This commit is contained in:
@ -101,6 +101,8 @@ export const Routes : Route[] = [
|
||||
|
||||
{path: "/settings/upload_account_image", cb: (h) => SettingsController.UploadAccountImage(h)},
|
||||
|
||||
{path: "/settings/delete_account_image", cb: (h) => SettingsController.DeleteAccountImage(h)},
|
||||
|
||||
|
||||
// Friends controller
|
||||
{path: "/friends/getList", cb: (h) => FriendsController.GetList(h)},
|
||||
|
@ -232,4 +232,14 @@ export class SettingsController {
|
||||
|
||||
h.success();
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete account account image
|
||||
*
|
||||
* @param h Request handler
|
||||
*/
|
||||
public static async DeleteAccountImage(h: RequestHandler) {
|
||||
await AccountImageHelper.Delete(h.getUserId());
|
||||
h.success();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user