Add an unauthenticated test endpoint
This commit is contained in:
parent
067330db55
commit
f60299f3ca
@ -8,6 +8,10 @@ import (
|
||||
)
|
||||
|
||||
func authenticated(w http.ResponseWriter, r *http.Request) {
|
||||
if r.URL.Path == "/test" {
|
||||
w.Write([]byte("It's working!"))
|
||||
return
|
||||
}
|
||||
// defense in depth
|
||||
if httpPassword == "" {
|
||||
http.Error(w, "httpPassword not set", http.StatusInternalServerError)
|
||||
|
Loading…
x
Reference in New Issue
Block a user