summaryrefslogtreecommitdiffstats
path: root/cmd/web.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-11 17:54:00 +0800
committerUnknwon <u@gogs.io>2015-08-11 17:54:00 +0800
commit89c2bd4a0dd85261f72565ba8395644da8129fea (patch)
treecbd75644b3a7d83df8353fd93538564b8afa16fd /cmd/web.go
parent17f3e840ec7e7dbff5d3d6e6da4e8347844f6817 (diff)
downloadgitea-89c2bd4a0dd85261f72565ba8395644da8129fea.tar.gz
gitea-89c2bd4a0dd85261f72565ba8395644da8129fea.zip
finish create issue attachment UI
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 99e3881353..445031ffaf 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -325,7 +325,10 @@ func runWeb(ctx *cli.Context) {
})
}, adminReq)
- m.Get("/:username", ignSignIn, user.Profile)
+ m.Group("", func() {
+ m.Get("/:username", user.Profile)
+ m.Post("/attachments", repo.UploadAttachment)
+ }, ignSignIn)
if macaron.Env == macaron.DEV {
m.Get("/template/*", dev.TemplatePreview)