diff options
author | RandomChars <random@chars.jp> | 2021-08-18 19:54:33 +0900 |
---|---|---|
committer | RandomChars <random@chars.jp> | 2021-08-18 19:54:33 +0900 |
commit | c0703d0aef254727bdff5b1ec402de15ce5461a3 (patch) | |
tree | ee604ef648fa68ad57038f10920a9ef2f6da0092 | |
parent | d1715a689f77f92129d6f8a1481e78526d002283 (diff) |
fix pathsv0.7.6
-rw-r--r-- | web.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -93,13 +93,13 @@ func registerWebpage() { context.Redirect(http.StatusTemporaryRedirect, "web") }) - if stat, err := os.Stat("assets"); err == nil && stat.IsDir() { + if stat, err := os.Stat("assets/public"); err == nil && stat.IsDir() { log.Info("Serving web interface from filesystem.") - router.Static("/web", "assets") + router.Static("/web", "assets/public") } else { log.Info("Serving bundled assets.") var public fs.FS - public, err = fs.Sub(assets, "assets") + public, err = fs.Sub(assets, "assets/public") if err != nil { log.Fatalf("Error getting subdirectory, %s", err) } |