summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRandomChars <random@chars.jp>2021-08-18 19:54:33 +0900
committerRandomChars <random@chars.jp>2021-08-18 19:54:33 +0900
commitc0703d0aef254727bdff5b1ec402de15ce5461a3 (patch)
treeee604ef648fa68ad57038f10920a9ef2f6da0092
parentd1715a689f77f92129d6f8a1481e78526d002283 (diff)
fix pathsv0.7.6
-rw-r--r--web.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/web.go b/web.go
index 9f754a2..b51ef15 100644
--- a/web.go
+++ b/web.go
@@ -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)
}