about summary refs log tree commit diff stats
path: root/svc/svc.go
diff options
context:
space:
mode:
authorBenjamin Morrison <ben@gbmor.dev>2021-10-21 21:41:44 -0400
committerGitHub <noreply@github.com>2021-10-21 21:41:44 -0400
commit57dfee62f097eed8f5e4a3429d7ea850ce07c570 (patch)
tree5ee99ab38e00c41190f82bef4b08a298c914f329 /svc/svc.go
parentd2cbd7b2dca8b981f886c490d0aed205f0530c31 (diff)
parentdd3d87bd97e41c77eea270812d338139fd87b9fc (diff)
downloadgetwtxt-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.go4
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)}").