summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-07-04 17:26:15 -0400
committerUnknown <joe2010xtmf@163.com>2014-07-04 17:26:15 -0400
commitaed4271c8dc60f34a59c548bbc1b8859b0105be0 (patch)
tree3d8521fa4397622c75249b2c5efc2468ea25484e /cmd
parentbe8ac7fb75a389402929dd726f39bbbbdb9a6531 (diff)
downloadgitea-aed4271c8dc60f34a59c548bbc1b8859b0105be0.tar.gz
gitea-aed4271c8dc60f34a59c548bbc1b8859b0105be0.zip
Change martini.Static to custom Static function
Diffstat (limited to 'cmd')
-rw-r--r--cmd/web.go4
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}