summaryrefslogtreecommitdiff
path: root/internal/api/client/account/account.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/client/account/account.go')
-rw-r--r--internal/api/client/account/account.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/api/client/account/account.go b/internal/api/client/account/account.go
index c72e9fb5d..c38a8cfb4 100644
--- a/internal/api/client/account/account.go
+++ b/internal/api/client/account/account.go
@@ -71,6 +71,8 @@ const (
BlockPath = BasePathWithID + "/block"
// UnblockPath is for removing a block of an account
UnblockPath = BasePathWithID + "/unblock"
+ // DeleteAccountPath is for deleting one's account via the API
+ DeleteAccountPath = BasePath + "/delete"
)
// Module implements the ClientAPIModule interface for account-related actions
@@ -90,6 +92,9 @@ func (m *Module) Route(r router.Router) error {
// create account
r.AttachHandler(http.MethodPost, BasePath, m.AccountCreatePOSTHandler)
+ // delete account
+ r.AttachHandler(http.MethodPost, DeleteAccountPath, m.AccountDeletePOSTHandler)
+
// get account
r.AttachHandler(http.MethodGet, BasePathWithID, m.muxHandler)