mirror of
https://github.com/go-gitea/gitea.git
synced 2024-10-30 05:52:42 +00:00
parent
e94a84248d
commit
11f6ed4f83
@ -698,14 +698,14 @@ func RegisterRoutes(m *macaron.Macaron) {
|
|||||||
Delete(reqToken(), reqOrgMembership(), org.ConcealMember)
|
Delete(reqToken(), reqOrgMembership(), org.ConcealMember)
|
||||||
})
|
})
|
||||||
m.Combo("/teams", reqToken(), reqOrgMembership()).Get(org.ListTeams).
|
m.Combo("/teams", reqToken(), reqOrgMembership()).Get(org.ListTeams).
|
||||||
Post(bind(api.CreateTeamOption{}), org.CreateTeam)
|
Post(reqOrgOwnership(), bind(api.CreateTeamOption{}), org.CreateTeam)
|
||||||
m.Group("/hooks", func() {
|
m.Group("/hooks", func() {
|
||||||
m.Combo("").Get(org.ListHooks).
|
m.Combo("").Get(org.ListHooks).
|
||||||
Post(bind(api.CreateHookOption{}), org.CreateHook)
|
Post(bind(api.CreateHookOption{}), org.CreateHook)
|
||||||
m.Combo("/:id").Get(org.GetHook).
|
m.Combo("/:id").Get(org.GetHook).
|
||||||
Patch(reqOrgOwnership(), bind(api.EditHookOption{}), org.EditHook).
|
Patch(bind(api.EditHookOption{}), org.EditHook).
|
||||||
Delete(reqOrgOwnership(), org.DeleteHook)
|
Delete(org.DeleteHook)
|
||||||
}, reqToken(), reqOrgMembership())
|
}, reqToken(), reqOrgOwnership())
|
||||||
}, orgAssignment(true))
|
}, orgAssignment(true))
|
||||||
m.Group("/teams/:teamid", func() {
|
m.Group("/teams/:teamid", func() {
|
||||||
m.Combo("").Get(org.GetTeam).
|
m.Combo("").Get(org.GetTeam).
|
||||||
|
Loading…
Reference in New Issue
Block a user