|
|
@ -1010,7 +1010,7 @@ func Routes() *web.Route { |
|
|
|
}, mustAllowPulls, reqRepoReader(unit.TypeCode), context.ReferencesGitRepo()) |
|
|
|
}, mustAllowPulls, reqRepoReader(unit.TypeCode), context.ReferencesGitRepo()) |
|
|
|
m.Group("/statuses", func() { |
|
|
|
m.Group("/statuses", func() { |
|
|
|
m.Combo("/{sha}").Get(repo.GetCommitStatuses). |
|
|
|
m.Combo("/{sha}").Get(repo.GetCommitStatuses). |
|
|
|
Post(reqToken(), bind(api.CreateStatusOption{}), repo.NewCommitStatus) |
|
|
|
Post(reqToken(), reqRepoWriter(unit.TypeCode), bind(api.CreateStatusOption{}), repo.NewCommitStatus) |
|
|
|
}, reqRepoReader(unit.TypeCode)) |
|
|
|
}, reqRepoReader(unit.TypeCode)) |
|
|
|
m.Group("/commits", func() { |
|
|
|
m.Group("/commits", func() { |
|
|
|
m.Get("", context.ReferencesGitRepo(), repo.GetAllCommits) |
|
|
|
m.Get("", context.ReferencesGitRepo(), repo.GetAllCommits) |
|
|
|