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 | |
parent | 63cc14062a891a99a429f2eef0ee90a3f5795f47 (diff) | |
download | gitea-0f907301b7fbd05faf07bc22b3316ae1093c6724.tar.gz gitea-0f907301b7fbd05faf07bc22b3316ae1093c6724.zip |
Fix #285
Diffstat (limited to 'routers/api')
-rw-r--r-- | routers/api/v1/repositories.go | 13 | ||||
-rw-r--r-- | routers/api/v1/users.go | 2 |
2 files changed, 14 insertions, 1 deletions
diff --git a/routers/api/v1/repositories.go b/routers/api/v1/repositories.go new file mode 100644 index 0000000000..11c8b6b2e3 --- /dev/null +++ b/routers/api/v1/repositories.go @@ -0,0 +1,13 @@ +// Copyright 2014 The Gogs Authors. All rights reserved. +// Use of this source code is governed by a MIT-style +// license that can be found in the LICENSE file. + +package v1 + +import ( + "github.com/gogits/gogs/modules/middleware" +) + +func SearchOrgRepositoreis(ctx *middleware.Context) { + +} 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 { |