From f60299f3cabb9e2bafa0c37d0479f6560f337025 Mon Sep 17 00:00:00 2001 From: lordwelch Date: Sat, 22 Aug 2020 10:23:49 -0700 Subject: [PATCH] Add an unauthenticated test endpoint --- authenticated.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/authenticated.go b/authenticated.go index 9901def..4bb7e54 100644 --- a/authenticated.go +++ b/authenticated.go @@ -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)