diff options
author | Benjamin Morrison <ben@gbmor.dev> | 2021-10-21 21:41:44 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-21 21:41:44 -0400 |
commit | 57dfee62f097eed8f5e4a3429d7ea850ce07c570 (patch) | |
tree | 5ee99ab38e00c41190f82bef4b08a298c914f329 /svc/svc.go | |
parent | d2cbd7b2dca8b981f886c490d0aed205f0530c31 (diff) | |
parent | dd3d87bd97e41c77eea270812d338139fd87b9fc (diff) | |
download | getwtxt-57dfee62f097eed8f5e4a3429d7ea850ce07c570.tar.gz |
Merge pull request #15 from getwtxt/delete-user
Delete user endpoint with admin pass
Diffstat (limited to 'svc/svc.go')
-rw-r--r-- | svc/svc.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/svc/svc.go b/svc/svc.go index 72ccdc3..10cf56a 100644 --- a/svc/svc.go +++ b/svc/svc.go @@ -91,6 +91,10 @@ func setIndexRouting(index *mux.Router) { } func setEndpointRouting(api *mux.Router) { + api.Path("/admin/users"). + Methods("DELETE"). + HandlerFunc(handleUserDelete) + // May add support for other formats later. // Making this future-proof. api.Path("/{format:(?:plain)}"). |