Add an unauthenticated test endpoint

This commit is contained in:
lordwelch 2020-08-22 10:23:49 -07:00
parent 067330db55
commit f60299f3ca

View File

@ -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)