remove unused code

This commit is contained in:
MaysWind
2020-10-19 22:08:36 +08:00
parent e92e4e6b2e
commit 19ebd6ce00
+1 -2
View File
@@ -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")