diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-11-13 12:57:00 -0500 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-11-13 12:57:00 -0500 |
commit | 9dc3c93a6a1f0d604aa5e4408a4c43c29b963b0c (patch) | |
tree | 0d2113af522fa36d2c73760c3aace4088ee3ae78 /routers/api/v1/repo.go | |
parent | 9e2284048372864a7dbc5e192877ebdca04abcab (diff) | |
download | gitea-9dc3c93a6a1f0d604aa5e4408a4c43c29b963b0c.tar.gz gitea-9dc3c93a6a1f0d604aa5e4408a4c43c29b963b0c.zip |
#12, add/edit hook
Diffstat (limited to 'routers/api/v1/repo.go')
-rw-r--r-- | routers/api/v1/repo.go | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/routers/api/v1/repo.go b/routers/api/v1/repo.go index 39a4c1d42c..e2d1dcb724 100644 --- a/routers/api/v1/repo.go +++ b/routers/api/v1/repo.go @@ -172,13 +172,9 @@ func Migrate(ctx *middleware.Context, form auth.MigrateRepoForm) { }) } -// /user/repos: https://developer.github.com/v3/repos/#list-your-repositories +// GET /user/repos +// https://developer.github.com/v3/repos/#list-your-repositories func ListMyRepos(ctx *middleware.Context) { - if !ctx.IsSigned { - ctx.Error(403) - return - } - ownRepos, err := models.GetRepositories(ctx.User.Id, true) if err != nil { ctx.JSON(500, map[string]interface{}{ |