Update main.go

This commit is contained in:
NewName
2024-12-22 23:31:30 +08:00
parent d41f2d41c6
commit 54efe11698

View File

@@ -65,7 +65,7 @@ func main() {
loadConfig() loadConfig()
} }
}() }()
// 前端访问路径,默认根路径
router.Static("/", "./public") router.Static("/", "./public")
router.NoRoute(handler) router.NoRoute(handler)