进入首页只需要输入ip和端口号

This commit is contained in:
johlanse 2022-04-21 17:03:04 +08:00
parent e6e6e359a2
commit 093d5c33c1
1 changed files with 3 additions and 0 deletions

View File

@ -18,6 +18,9 @@ func RouterInit() *gin.Engine {
router.Use(Cors())
router.StaticFS("/static", http.FS(static))
router.GET("/", func(ctx *gin.Context) {
ctx.Redirect(301, "/static/xxqg/build/home.html")
})
user := router.Group("/user")
// 添加用户
user.POST("/", addUser())