设定路由

This commit is contained in:
2025-08-10 02:11:35 +08:00
parent 10a2572e5d
commit 3c500a7f0c

17
router/setupRouter.go Normal file
View File

@@ -0,0 +1,17 @@
package router
import (
"github.com/gin-gonic/gin"
"toutoukan/controllers/user"
)
func SetupRouter() *gin.Engine {
r := gin.Default()
apiGroup := r.Group("/user")
{
apiGroup.POST("/login", user.UserLogin)
}
return r
}