Update testhelper to prefix all paths with /helper

This commit is contained in:
Finn Herzfeld 2018-12-05 12:48:20 -08:00
parent 1ab7e99492
commit 5e8081a5b3

View file

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