This commit is contained in:
2022-11-23 18:27:39 +08:00
parent 7524a3e561
commit 302752a7f0

View File

@@ -47,6 +47,10 @@ var wsUpgrader = websocket.Upgrader{
func main() {
r := gin.Default()
r.NoRoute(func(c *gin.Context) {
c.File("./web/build/index.html")
})
group := r.Group("/")
group.StaticFile("/", "./web/build/index.html")