mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2025-06-20 08:35:17 +00:00
Ready to implement account export
This commit is contained in:
@ -220,8 +220,18 @@ export class AccountController {
|
||||
public static async ExportData(h: RequestHandler) {
|
||||
await h.needUserPostPassword("password");
|
||||
|
||||
// TODO : implement
|
||||
h.error(500, "Method not implemented yet.");
|
||||
const data = await AccountHelper.Export(h.getUserId());
|
||||
|
||||
const out: any = {
|
||||
userID: data.userID
|
||||
};
|
||||
|
||||
|
||||
|
||||
// TODO : continue
|
||||
|
||||
|
||||
h.send(out);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user