@ -502,7 +502,7 @@ func RegisterRoutes(m *macaron.Macaron) {
} , reqSignIn )
} , reqSignIn )
m . Group ( "/:username" , func ( ) {
m . Group ( "/:username" , func ( ) {
m . Ge t( "/action/:action" , user . Action )
m . Pos t( "/action/:action" , user . Action )
} , reqSignIn )
} , reqSignIn )
if macaron . Env == macaron . DEV {
if macaron . Env == macaron . DEV {
@ -534,7 +534,7 @@ func RegisterRoutes(m *macaron.Macaron) {
m . Get ( "/^:type(issues|pulls)$" , user . Issues )
m . Get ( "/^:type(issues|pulls)$" , user . Issues )
m . Get ( "/milestones" , reqMilestonesDashboardPageEnabled , user . Milestones )
m . Get ( "/milestones" , reqMilestonesDashboardPageEnabled , user . Milestones )
m . Get ( "/members" , org . Members )
m . Get ( "/members" , org . Members )
m . Ge t( "/members/action/:action" , org . MembersAction )
m . Pos t( "/members/action/:action" , org . MembersAction )
m . Get ( "/teams" , org . Teams )
m . Get ( "/teams" , org . Teams )
} , context . OrgAssignment ( true ) )
} , context . OrgAssignment ( true ) )
@ -542,8 +542,8 @@ func RegisterRoutes(m *macaron.Macaron) {
m . Group ( "/:org" , func ( ) {
m . Group ( "/:org" , func ( ) {
m . Get ( "/teams/:team" , org . TeamMembers )
m . Get ( "/teams/:team" , org . TeamMembers )
m . Get ( "/teams/:team/repositories" , org . TeamRepositories )
m . Get ( "/teams/:team/repositories" , org . TeamRepositories )
m . Route ( "/teams/:team/action/:action" , "GET,POST " , org . TeamsAction )
m . Route ( "/teams/:team/action/repo/:action" , "GET,POST " , org . TeamsRepoAction )
m . Post ( "/teams/:team/action/:action" , org . TeamsAction )
m . Post ( "/teams/:team/action/repo/:action" , org . TeamsRepoAction )
} , context . OrgAssignment ( true , false , true ) )
} , context . OrgAssignment ( true , false , true ) )
m . Group ( "/:org" , func ( ) {
m . Group ( "/:org" , func ( ) {
@ -681,7 +681,7 @@ func RegisterRoutes(m *macaron.Macaron) {
} )
} )
} , reqSignIn , context . RepoAssignment ( ) , context . UnitTypes ( ) , reqRepoAdmin , context . RepoRef ( ) )
} , reqSignIn , context . RepoAssignment ( ) , context . UnitTypes ( ) , reqRepoAdmin , context . RepoRef ( ) )
m . Ge t( "/:username/:reponame/action/:action" , reqSignIn , context . RepoAssignment ( ) , context . UnitTypes ( ) , repo . Action )
m . Pos t( "/:username/:reponame/action/:action" , reqSignIn , context . RepoAssignment ( ) , context . UnitTypes ( ) , repo . Action )
m . Group ( "/:username/:reponame" , func ( ) {
m . Group ( "/:username/:reponame" , func ( ) {
m . Group ( "/issues" , func ( ) {
m . Group ( "/issues" , func ( ) {
@ -735,7 +735,7 @@ func RegisterRoutes(m *macaron.Macaron) {
Post ( bindIgnErr ( auth . CreateMilestoneForm { } ) , repo . NewMilestonePost )
Post ( bindIgnErr ( auth . CreateMilestoneForm { } ) , repo . NewMilestonePost )
m . Get ( "/:id/edit" , repo . EditMilestone )
m . Get ( "/:id/edit" , repo . EditMilestone )
m . Post ( "/:id/edit" , bindIgnErr ( auth . CreateMilestoneForm { } ) , repo . EditMilestonePost )
m . Post ( "/:id/edit" , bindIgnErr ( auth . CreateMilestoneForm { } ) , repo . EditMilestonePost )
m . Ge t( "/:id/:action" , repo . ChangeMilestonStatus )
m . Pos t( "/:id/:action" , repo . ChangeMilestonStatus )
m . Post ( "/delete" , repo . DeleteMilestone )
m . Post ( "/delete" , repo . DeleteMilestone )
} , context . RepoMustNotBeArchived ( ) , reqRepoIssuesOrPullsWriter , context . RepoRef ( ) )
} , context . RepoMustNotBeArchived ( ) , reqRepoIssuesOrPullsWriter , context . RepoRef ( ) )
m . Group ( "/milestone" , func ( ) {
m . Group ( "/milestone" , func ( ) {