This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
frontend/src/services/accountDelete.ts

15 lines
381 B
TypeScript
Raw Permalink Normal View History

import AbstractService from './abstractService'
export default class AccountDeleteService extends AbstractService {
2022-06-23 01:20:07 +00:00
request(password: string) {
return this.post('/user/deletion/request', {password})
}
2022-06-23 01:20:07 +00:00
confirm(token: string) {
return this.post('/user/deletion/confirm', {token})
}
2022-06-23 01:20:07 +00:00
cancel(password: string) {
return this.post('/user/deletion/cancel', {password})
}
}