Added API tests.

This commit is contained in:
Matthew Dillon 2014-10-02 16:41:13 -08:00
parent c0b54d821e
commit 0eae5fc6b8
5 changed files with 161 additions and 2 deletions

View file

@ -12,7 +12,7 @@ import (
)
func serveUser(w http.ResponseWriter, r *http.Request) error {
id, err := strconv.ParseInt(mux.Vars(r)["ID"], 10, 0)
id, err := strconv.ParseInt(mux.Vars(r)["Id"], 10, 0)
if err != nil {
return err
}