Skip to content

Commit 1918cc7

Browse files
zeripath6543
andauthored
Apply suggestions from code review
Co-authored-by: 6543 <6543@obermui.de>
1 parent 96a7eef commit 1918cc7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

routers/api/v1/api.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -989,8 +989,8 @@ func Routes() *web.Route {
989989
Delete(reqToken(), reqOrgMembership(), org.ConcealMember)
990990
})
991991
m.Group("/teams", func() {
992-
m.Combo("", reqToken()).Get(org.ListTeams).
993-
Post(reqOrgOwnership(), bind(api.CreateTeamOption{}), org.CreateTeam)
992+
m.Get("", org.ListTeams)
993+
m.Post("", reqOrgOwnership(), bind(api.CreateTeamOption{}), org.CreateTeam)
994994
m.Get("/search", org.SearchTeam)
995995
}, reqToken(), reqOrgMembership())
996996
m.Group("/labels", func() {

0 commit comments

Comments
 (0)