diff options
author | 无闻 <joe2010xtmf@163.com> | 2014-07-24 12:47:55 -0400 |
---|---|---|
committer | 无闻 <joe2010xtmf@163.com> | 2014-07-24 12:47:55 -0400 |
commit | da0240aacd5646bd73b2e22d92d88578dbafd64b (patch) | |
tree | 3c101530bc7f1b9f4677cab0be4e8a3e4175c50b /cmd/web.go | |
parent | 3db84c889365a559a6ea81ad4e7dd4a5f089d249 (diff) | |
parent | 9a7349ce64afdbc528126862283b1068d4c8699a (diff) |
Merge pull request #307 from nuss-justin/feature/attachments
Feature: Ability to attach files to issues (attachments)
Diffstat (limited to 'cmd/web.go')
-rw-r--r-- | cmd/web.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -206,7 +206,7 @@ func runWeb(*cli.Context) { r.Post("/:org/teams/new", bindIgnErr(auth.CreateTeamForm{}), org.NewTeamPost) r.Get("/:org/teams/:team/edit", org.EditTeam) - r.Get("/:org/team/:team",org.SingleTeam) + r.Get("/:org/team/:team", org.SingleTeam) r.Get("/:org/settings", org.Settings) r.Post("/:org/settings", bindIgnErr(auth.OrgSettingForm{}), org.SettingsPost) @@ -238,6 +238,7 @@ func runWeb(*cli.Context) { r.Post("/:index/label", repo.UpdateIssueLabel) r.Post("/:index/milestone", repo.UpdateIssueMilestone) r.Post("/:index/assignee", repo.UpdateAssignee) + r.Get("/:index/attachment/:id", repo.IssueGetAttachment) r.Post("/labels/new", bindIgnErr(auth.CreateLabelForm{}), repo.NewLabel) r.Post("/labels/edit", bindIgnErr(auth.CreateLabelForm{}), repo.UpdateLabel) r.Post("/labels/delete", repo.DeleteLabel) |