From 5e8081a5b3a123c648da1861d9ff3a0c0e8caae4 Mon Sep 17 00:00:00 2001 From: Finn Herzfeld Date: Wed, 5 Dec 2018 12:48:20 -0800 Subject: [PATCH] Update testhelper to prefix all paths with /helper --- testhelper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testhelper.go b/testhelper.go index 8fc16e6..9eae600 100644 --- a/testhelper.go +++ b/testhelper.go @@ -20,7 +20,7 @@ func main() { db, err := sql.Open("postgres", os.Getenv("DB")) crash(err) - http.HandleFunc("/verification-code", func(w http.ResponseWriter, r *http.Request) { + http.HandleFunc("/helper/verification-code", func(w http.ResponseWriter, r *http.Request) { account := r.PostFormValue("account") var code string err := db.QueryRow("SELECT verification_code FROM pending_accounts WHERE number = $1", account).Scan(&code)