summaryrefslogtreecommitdiffstats
path: root/cmd/web.go
diff options
context:
space:
mode:
authorJustin Nuß <nuss.justin@gmail.com>2014-07-23 21:15:47 +0200
committerJustin Nuß <nuss.justin@gmail.com>2014-07-23 21:15:47 +0200
commit4617bef8954deeef5bd2ba36d84aba3b05a4dd83 (patch)
treea3583597828726617cfcf0b4d945e7bf6fb3471c /cmd/web.go
parent6e9f1c52b18f112eecd5c72e295cfea1809f07fa (diff)
downloadgitea-4617bef8954deeef5bd2ba36d84aba3b05a4dd83.tar.gz
gitea-4617bef8954deeef5bd2ba36d84aba3b05a4dd83.zip
WIP: Allow attachments for comments
Diffstat (limited to 'cmd/web.go')
-rw-r--r--cmd/web.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/web.go b/cmd/web.go
index d3ce68d370..48622b55cd 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,9 @@ func runWeb(*cli.Context) {
r.Post("/:index/label", repo.UpdateIssueLabel)
r.Post("/:index/milestone", repo.UpdateIssueMilestone)
r.Post("/:index/assignee", repo.UpdateAssignee)
+ r.Post("/:index/attachment", repo.IssuePostAttachment)
+ r.Post("/:index/attachment/:id", repo.IssuePostAttachment)
+ 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)