diff options
author | Philip Couling <couling@gmail.com> | 2017-01-15 14:57:00 +0000 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-01-15 22:57:00 +0800 |
commit | 64375d875b4d46a6081026290da8efd82c84b25f (patch) | |
tree | de35ef6470c9f8762f2dcd1912fc56dc4a499bad /cmd | |
parent | dce03c19cb6c0f067a75f04a1bc1e7cb3528c585 (diff) | |
download | gitea-64375d875b4d46a6081026290da8efd82c84b25f.tar.gz gitea-64375d875b4d46a6081026290da8efd82c84b25f.zip |
Attach to release (#673)
* Moved attachaments POST url from /issues/attachments to /attachments
* Implemented attachment upload on release page
* Implemented downloading attachments on the release page
* Added zip and gzip files to default allowed attachments
* Implemented uploading attachments on edit release
* Renamed UploadIssueAttachment to UploadAttachment
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/web.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cmd/web.go b/cmd/web.go index 2ab680ecf3..ff4fcc376d 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -309,7 +309,7 @@ func runWeb(ctx *cli.Context) error { return } }) - m.Post("/issues/attachments", repo.UploadIssueAttachment) + m.Post("/attachments", repo.UploadAttachment) }, ignSignIn) m.Group("/:username", func() { @@ -463,13 +463,11 @@ func runWeb(ctx *cli.Context) error { m.Get("/:id/:action", repo.ChangeMilestonStatus) m.Post("/delete", repo.DeleteMilestone) }, reqRepoWriter, context.RepoRef()) - m.Group("/releases", func() { m.Get("/new", repo.NewRelease) m.Post("/new", bindIgnErr(auth.NewReleaseForm{}), repo.NewReleasePost) m.Post("/delete", repo.DeleteRelease) }, reqRepoWriter, context.RepoRef()) - m.Group("/releases", func() { m.Get("/edit/*", repo.EditRelease) m.Post("/edit/*", bindIgnErr(auth.EditReleaseForm{}), repo.EditReleasePost) |