mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-23 03:04:26 +08:00
add missing router path
This commit is contained in:
@@ -119,6 +119,10 @@ func startWebServer(c *core.CliContext) error {
|
|||||||
router.StaticFile("sw.js", filepath.Join(config.StaticRootPath, "sw.js"))
|
router.StaticFile("sw.js", filepath.Join(config.StaticRootPath, "sw.js"))
|
||||||
router.GET("/server_settings.js", bindCachedJs(api.ServerSettings.ServerSettingsJavascriptHandler, serverSettingsCacheStore))
|
router.GET("/server_settings.js", bindCachedJs(api.ServerSettings.ServerSettingsJavascriptHandler, serverSettingsCacheStore))
|
||||||
|
|
||||||
|
for i := 0; i < len(workboxFileNames); i++ {
|
||||||
|
router.StaticFile("/"+workboxFileNames[i], filepath.Join(config.StaticRootPath, workboxFileNames[i]))
|
||||||
|
}
|
||||||
|
|
||||||
router.StaticFile("/mobile", filepath.Join(config.StaticRootPath, "mobile.html"))
|
router.StaticFile("/mobile", filepath.Join(config.StaticRootPath, "mobile.html"))
|
||||||
router.Static("/mobile/js", filepath.Join(config.StaticRootPath, "js"))
|
router.Static("/mobile/js", filepath.Join(config.StaticRootPath, "js"))
|
||||||
router.Static("/mobile/css", filepath.Join(config.StaticRootPath, "css"))
|
router.Static("/mobile/css", filepath.Join(config.StaticRootPath, "css"))
|
||||||
|
|||||||
Reference in New Issue
Block a user