Update testhelper to prefix all paths with /helper
This commit is contained in:
parent
1ab7e99492
commit
5e8081a5b3
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue