diff options
author | skyblue <ssx205@gmail.com> | 2014-03-26 21:26:31 +0800 |
---|---|---|
committer | skyblue <ssx205@gmail.com> | 2014-03-26 21:26:31 +0800 |
commit | 4662a73ac34adeeeb6fc48ba6ac69b6a4adf18bc (patch) | |
tree | 6dc79a28443c9c3688cc6e1b2469f64395e3067b /web.go | |
parent | 409e4cde7a379bbdbe53367b3726f64b80aed0eb (diff) | |
download | gitea-4662a73ac34adeeeb6fc48ba6ac69b6a4adf18bc.tar.gz gitea-4662a73ac34adeeeb6fc48ba6ac69b6a4adf18bc.zip |
name change of avatar
Diffstat (limited to 'web.go')
-rw-r--r-- | web.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -96,8 +96,8 @@ func runWeb(*cli.Context) { m.Get("/stars", reqSignIn, user.Stars) m.Get("/help", routers.Help) - avatarCache := avatar.HttpHandler("public/img/avatar/", "public/img/avatar_default.jpg") - m.Get("/avatar/:hash", avatarCache.ServeHTTP) + avt := avatar.CacheServer("public/img/avatar/", "public/img/avatar_default.jpg") + m.Get("/avatar/:hash", avt.ServeHTTP) m.Group("/user", func(r martini.Router) { r.Any("/login", binding.BindIgnErr(auth.LogInForm{}), user.SignIn) |