summaryrefslogtreecommitdiffstats
path: root/modules/public/static.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/public/static.go')
-rw-r--r--modules/public/static.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/public/static.go b/modules/public/static.go
index 76050632c9..8da10567ea 100644
--- a/modules/public/static.go
+++ b/modules/public/static.go
@@ -8,12 +8,11 @@ package public
import (
"io/ioutil"
-
- "gitea.com/macaron/macaron"
+ "net/http"
)
// Static implements the macaron static handler for serving assets.
-func Static(opts *Options) macaron.Handler {
+func Static(opts *Options) func(next http.Handler) http.Handler {
opts.FileSystem = Assets
// we don't need to pass the directory, because the directory var is only
// used when in the options there is no FileSystem.