aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api/v1/users.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api/v1/users.go')
-rw-r--r--routers/api/v1/users.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/users.go b/routers/api/v1/users.go
index a5ad8fbca0..e4da60aa7b 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 {