From 19ebd6ce0094b54bcd737e1e00e5abac6127a50a Mon Sep 17 00:00:00 2001 From: MaysWind Date: Mon, 19 Oct 2020 22:08:36 +0800 Subject: [PATCH] remove unused code --- cmd/webserver.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/webserver.go b/cmd/webserver.go index c043807f..90bd4125 100644 --- a/cmd/webserver.go +++ b/cmd/webserver.go @@ -90,10 +90,9 @@ func startWebServer(c *cli.Context) error { router.Static("/css", filepath.Join(config.StaticRootPath, "css")) router.Static("/img", filepath.Join(config.StaticRootPath, "img")) router.Static("/fonts", filepath.Join(config.StaticRootPath, "fonts")) - router.Static("/lang", filepath.Join(config.StaticRootPath, "lang")) router.GET("/", func(c *gin.Context) { - c.Redirect(http.StatusMovedPermanently,"/mobile") + c.Redirect(http.StatusMovedPermanently, "/mobile") }) apiRoute := router.Group("/api")