add missing router path

This commit is contained in:
MaysWind
2024-12-22 21:52:56 +08:00
parent dd155a0f63
commit 493c16087d
+1
View File
@@ -116,6 +116,7 @@ func startWebServer(c *core.CliContext) error {
router.StaticFile("favicon.png", filepath.Join(config.StaticRootPath, "favicon.png"))
router.StaticFile("touchicon.png", filepath.Join(config.StaticRootPath, "touchicon.png"))
router.StaticFile("manifest.json", filepath.Join(config.StaticRootPath, "manifest.json"))
router.StaticFile("sw.js", filepath.Join(config.StaticRootPath, "sw.js"))
router.GET("/server_settings.js", bindCachedJs(api.ServerSettings.ServerSettingsJavascriptHandler, serverSettingsCacheStore))
router.StaticFile("/mobile", filepath.Join(config.StaticRootPath, "mobile.html"))