aboutsummaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-11-17 02:18:05 -0500
committerUnknwon <u@gogs.io>2015-11-17 02:18:05 -0500
commitff5f14431eb2df2e68e6b3765607fa4aef99c707 (patch)
tree07fc01396d867adaf794ad47a010132ebeb0a71e /routers
parentab9411be2ae01970f4c2c092683bd9d9b71c994b (diff)
downloadgitea-ff5f14431eb2df2e68e6b3765607fa4aef99c707.tar.gz
gitea-ff5f14431eb2df2e68e6b3765607fa4aef99c707.zip
fix #1448
Diffstat (limited to 'routers')
-rw-r--r--routers/api/v1/user.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/user.go b/routers/api/v1/user.go
index f27cd3ae44..ec4f720cb6 100644
--- a/routers/api/v1/user.go
+++ b/routers/api/v1/user.go
@@ -55,7 +55,7 @@ func SearchUsers(ctx *middleware.Context) {
}
}
- ctx.Render.JSON(200, map[string]interface{}{
+ ctx.JSON(200, map[string]interface{}{
"ok": true,
"data": results,
})