Use Go 1.16 native embedding and remove go-bindata (#1151)
Co-authored-by: Sam Salisbury <samsalisbury@gmail.com>
This commit is contained in:
1 parent
46d7613e2d
commit
a90a64d787
15 files changed
+634
-638
No files matched your search
@@ -18,7 +18,7 @@ func handleUiWithAssets(c *Controller) http.Handler {
|
||||
if c.conf.RawConfig.PassthroughDirectory != "" {
|
||||
nextHandler = devPassthroughHandler(c.logger, c.conf.RawConfig.PassthroughDirectory)
|
||||
} else {
|
||||
nextHandler = http.FileServer(ui.AssetFile())
|
||||
nextHandler = ui.Handler()
|
||||
}
|
||||
|
||||
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
Reference in new issue
Block a user