From dd3d87bd97e41c77eea270812d338139fd87b9fc Mon Sep 17 00:00:00 2001 From: Benjamin Morrison Date: Thu, 21 Oct 2021 21:31:17 -0400 Subject: delete a user, new config option for admin pass. pass is bcrypt hashed on startup and not stored in plaintext. --- svc/svc.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'svc/svc.go') 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)}"). -- cgit 1.4.1-2-gfad0