move static into own package

Change-Id: I8be408f295aa377a0a0c2879420f501ba0dadf5e
This commit is contained in:
sm
2016-06-05 22:41:56 -07:00
parent 4fb9e35a17
commit 5458745af9
5 changed files with 599 additions and 598 deletions
+4 -3
View File
@@ -12,6 +12,7 @@ import (
"github.com/elazarl/go-bindata-assetfs"
verrors "mcquay.me/vain/errors"
"mcquay.me/vain/static"
)
const apiPrefix = "/api/v0/"
@@ -219,9 +220,9 @@ func addRoutes(sm *http.ServeMux, s *Server) {
prefix["static"],
http.FileServer(
&assetfs.AssetFS{
Asset: Asset,
AssetDir: AssetDir,
AssetInfo: AssetInfo,
Asset: static.Asset,
AssetDir: static.AssetDir,
AssetInfo: static.AssetInfo,
},
),
)