From 89c2bd4a0dd85261f72565ba8395644da8129fea Mon Sep 17 00:00:00 2001 From: Unknwon Date: Tue, 11 Aug 2015 17:54:00 +0800 Subject: finish create issue attachment UI --- cmd/web.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cmd') 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) -- cgit v1.2.3