Add simple example handler for admin functions

This commit is contained in:
Eli Ribble 2026-02-18 08:02:32 +00:00
parent df0644f85b
commit b0ee388986
No known key found for this signature in database
5 changed files with 36 additions and 2 deletions

View file

@ -69,6 +69,7 @@ func Router() chi.Router {
r.Method("GET", "/source/{globalid}", auth.NewEnsureAuth(getSource))
r.Method("GET", "/stadia", auth.NewEnsureAuth(getStadia))
r.Method("GET", "/sudo", authenticatedHandler(getSudo))
r.Method("POST", "/sudo/sms", auth.NewEnsureAuth(postSudoSMS))
r.Method("GET", "/trap/{globalid}", auth.NewEnsureAuth(getTrap))
r.Method("GET", "/text/{destination}", auth.NewEnsureAuth(getTextMessages))
r.Method("GET", "/upload", authenticatedHandler(getUploadList))