Add simple example handler for admin functions
This commit is contained in:
parent
df0644f85b
commit
b0ee388986
5 changed files with 36 additions and 2 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue