aboutsummaryrefslogtreecommitdiffstats
path: root/modules/public/static.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-06-03 05:43:47 +0800
committerLauris BH <lauris@nix.lv>2019-06-03 00:43:47 +0300
commit83b90e41999d30e4abb46f6bf0f1c3359cfd4d04 (patch)
tree4a15e9a42a850534a00346116da84153600a3027 /modules/public/static.go
parent8eba27c79257c6bc68cefbdffbb36d3596e6d3ee (diff)
downloadgitea-83b90e41999d30e4abb46f6bf0f1c3359cfd4d04.tar.gz
gitea-83b90e41999d30e4abb46f6bf0f1c3359cfd4d04.zip
Use vfsgen instead of go-bindata (#7080)
* use vfsgen instead of go-bindata * fix templates * fix fmt * vendor vsfgen
Diffstat (limited to 'modules/public/static.go')
-rw-r--r--modules/public/static.go9
1 files changed, 1 insertions, 8 deletions
diff --git a/modules/public/static.go b/modules/public/static.go
index 10e32dbd10..054b9a806c 100644
--- a/modules/public/static.go
+++ b/modules/public/static.go
@@ -7,19 +7,12 @@
package public
import (
- "github.com/go-macaron/bindata"
"gopkg.in/macaron.v1"
)
// Static implements the macaron static handler for serving assets.
func Static(opts *Options) macaron.Handler {
- opts.FileSystem = bindata.Static(bindata.Options{
- Asset: Asset,
- AssetDir: AssetDir,
- AssetInfo: AssetInfo,
- AssetNames: AssetNames,
- Prefix: "",
- })
+ 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.
return opts.staticHandler("")