Added API tests.
This commit is contained in:
parent
c0b54d821e
commit
0eae5fc6b8
5 changed files with 161 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Reference in a new issue