From 09fb036ad625ec5178319c30df47aac313fdbbe3 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Wed, 3 Apr 2019 03:25:05 +0800 Subject: fix upload attachments (#6481) * fix upload attachments * add migration for new column uploader_id on table attachment * fix imports sequence --- routers/routes/routes.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'routers/routes') diff --git a/routers/routes/routes.go b/routers/routes/routes.go index 2d720b3c5c..5c6d36befa 100644 --- a/routers/routes/routes.go +++ b/routers/routes/routes.go @@ -480,9 +480,12 @@ func RegisterRoutes(m *macaron.Macaron) { return } }) - m.Post("/attachments", repo.UploadAttachment) }, ignSignIn) + m.Group("", func() { + m.Post("/attachments", repo.UploadAttachment) + }, reqSignIn) + m.Group("/:username", func() { m.Get("/action/:action", user.Action) }, reqSignIn) -- cgit v1.2.3