diff options
Diffstat (limited to 'modules/public/dynamic.go')
-rw-r--r-- | modules/public/dynamic.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/public/dynamic.go b/modules/public/dynamic.go index 07f83e1f6a..f1a4dbb1a3 100644 --- a/modules/public/dynamic.go +++ b/modules/public/dynamic.go @@ -6,11 +6,9 @@ package public -import ( - "gitea.com/macaron/macaron" -) +import "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 { return opts.staticHandler(opts.Directory) } |