summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-09-06 17:12:02 -0400
committerUnknwon <u@gogs.io>2015-09-06 17:12:02 -0400
commitc38754d432c4244a884ccf2576397eb15552b495 (patch)
tree4a4ccc071f6625c7d143c1d647b4b17d3a7f7fab /cmd
parent85f34ba53843177999cb98bad046e9cce22bfc8f (diff)
downloadgitea-c38754d432c4244a884ccf2576397eb15552b495.tar.gz
gitea-c38754d432c4244a884ccf2576397eb15552b495.zip
#1191 allow upload avatar for org
Signed-off-by: Unknwon <u@gogs.io>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/web.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/web.go b/cmd/web.go
index 07e8517d4d..131c839a13 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -406,6 +406,7 @@ func runWeb(ctx *cli.Context) {
m.Group("/settings", func() {
m.Combo("").Get(org.Settings).
Post(bindIgnErr(auth.UpdateOrgSettingForm{}), org.SettingsPost)
+ m.Post("/avatar", binding.MultipartForm(auth.UploadAvatarForm{}), org.SettingsAvatar)
m.Group("/hooks", func() {
m.Get("", org.Webhooks)