This commit is contained in:
NewName
2024-12-22 22:50:31 +08:00
parent 421fa36a60
commit d41f2d41c6
3 changed files with 9 additions and 4 deletions

View File

@@ -66,8 +66,7 @@ func main() {
}
}()
router.StaticFile("/", "./public/index.html")
router.StaticFile("/favicon.ico", "./public/favicon.ico")
router.Static("/", "./public")
router.NoRoute(handler)
err := router.Run(fmt.Sprintf("%s:%d", host, port))