From 493c16087d13fea58d2d62b28b9aac8bbce65902 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Sun, 22 Dec 2024 21:52:56 +0800 Subject: [PATCH] add missing router path --- cmd/webserver.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/webserver.go b/cmd/webserver.go index 7291574e..acdc454a 100644 --- a/cmd/webserver.go +++ b/cmd/webserver.go @@ -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"))