GetUserByUsername mispelled username
parent
36ae44d829
commit
3c3f26086d
|
@ -128,7 +128,7 @@ func (h *Handler) GetUser(w http.ResponseWriter, r *http.Request, p httprouter.P
|
||||||
|
|
||||||
func (h *Handler) GetUserByUsername(w http.ResponseWriter, r *http.Request, p httprouter.Params) {
|
func (h *Handler) GetUserByUsername(w http.ResponseWriter, r *http.Request, p httprouter.Params) {
|
||||||
// Parse
|
// Parse
|
||||||
username := p.ByName("userername")
|
username := p.ByName("username")
|
||||||
|
|
||||||
// Response object
|
// Response object
|
||||||
user := User{}
|
user := User{}
|
||||||
|
|
Loading…
Reference in New Issue