remove unused code

This commit is contained in:
MaysWind
2020-10-27 22:13:31 +08:00
parent 046d6d7230
commit f483838a25
-4
View File
@@ -81,10 +81,6 @@ func startWebServer(c *cli.Context) error {
router.StaticFile("/mobile", filepath.Join(config.StaticRootPath, "mobile.html"))
router.StaticFile("/desktop", filepath.Join(config.StaticRootPath, "desktop.html"))
if config.EnableUserRegister {
router.StaticFile("register", filepath.Join(config.StaticRootPath, "register.html"))
}
router.StaticFile("robots.txt", filepath.Join(config.StaticRootPath, "robots.txt"))
router.Static("/js", filepath.Join(config.StaticRootPath, "js"))
router.Static("/css", filepath.Join(config.StaticRootPath, "css"))