aboutsummaryrefslogtreecommitdiff
path: root/cmd/web.go
diff options
context:
space:
mode:
author无闻 <joe2010xtmf@163.com>2014-07-24 12:47:55 -0400
committer无闻 <joe2010xtmf@163.com>2014-07-24 12:47:55 -0400
commitda0240aacd5646bd73b2e22d92d88578dbafd64b (patch)
tree3c101530bc7f1b9f4677cab0be4e8a3e4175c50b /cmd/web.go
parent3db84c889365a559a6ea81ad4e7dd4a5f089d249 (diff)
parent9a7349ce64afdbc528126862283b1068d4c8699a (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.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/web.go b/cmd/web.go
index d3ce68d3..bb020fab 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -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)