diff options
author | Unknown <joe2010xtmf@163.com> | 2014-07-04 17:26:15 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-07-04 17:26:15 -0400 |
commit | aed4271c8dc60f34a59c548bbc1b8859b0105be0 (patch) | |
tree | 3d8521fa4397622c75249b2c5efc2468ea25484e /cmd | |
parent | be8ac7fb75a389402929dd726f39bbbbdb9a6531 (diff) | |
download | gitea-aed4271c8dc60f34a59c548bbc1b8859b0105be0.tar.gz gitea-aed4271c8dc60f34a59c548bbc1b8859b0105be0.zip |
Change martini.Static to custom Static function
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/web.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/web.go b/cmd/web.go index 0515bcee30..3ee38f76c4 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -58,8 +58,8 @@ func newMartini() *martini.ClassicMartini { m := martini.New() m.Use(middleware.Logger()) m.Use(martini.Recovery()) - m.Use(martini.Static(path.Join(setting.StaticRootPath, "public"), - martini.StaticOptions{SkipLogging: !setting.DisableRouterLog})) + m.Use(middleware.Static("public", + middleware.StaticOptions{SkipLogging: !setting.DisableRouterLog})) m.MapTo(r, (*martini.Routes)(nil)) m.Action(r.Handle) return &martini.ClassicMartini{m, r} |