finish create issue attachment UI

This commit is contained in:
Unknwon 2015-08-11 17:54:00 +08:00
parent 17f3e840ec
commit 89c2bd4a0d
12 changed files with 2198 additions and 7 deletions

View file

@ -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)