Init Commit: After finish database connection.

This commit is contained in:
2025-07-19 14:13:43 +08:00
commit 56c625ee6b
14 changed files with 375 additions and 0 deletions

23
router/router.go Normal file
View File

@@ -0,0 +1,23 @@
package router
import "github.com/gin-gonic/gin"
func SetupRouter() *gin.Engine {
r := gin.Default()
api := r.Group("/api")
{
v1 := api.Group("/v1")
{
auth := v1.Group("/auth")
{
auth.POST("/login", func(context *gin.Context) {
context.JSON(200, gin.H{
"msg": "Login successfully",
})
})
auth.POST("/register")
}
}
}
return r
}