diff options
author | Unknown <joe2010xtmf@163.com> | 2014-07-12 00:55:19 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-07-12 00:55:19 -0400 |
commit | 0f907301b7fbd05faf07bc22b3316ae1093c6724 (patch) | |
tree | 806e40ea6ef651e28563d09526377ed736528c10 /routers/api/v1/users.go | |
parent | 63cc14062a891a99a429f2eef0ee90a3f5795f47 (diff) |
Fix #285
Diffstat (limited to 'routers/api/v1/users.go')
-rw-r--r-- | routers/api/v1/users.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/users.go b/routers/api/v1/users.go index a5ad8fbc..e4da60aa 100644 --- a/routers/api/v1/users.go +++ b/routers/api/v1/users.go @@ -15,7 +15,7 @@ type user struct { AvatarLink string `json:"avatar"` } -func SearchUser(ctx *middleware.Context) { +func SearchUsers(ctx *middleware.Context) { q := ctx.Query("q") limit, err := base.StrTo(ctx.Query("limit")).Int() if err != nil { |