This commit is contained in:
koh
2025-04-12 15:25:34 +07:00
commit d83f6c1145
38 changed files with 2131 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
package user
import (
"github.com/dungnt11/todoms_golang/internal/controllers"
"github.com/gin-gonic/gin"
)
// InitUserRoutes khởi tạo các routes liên quan đến user
func InitUserRoutes(router *gin.RouterGroup, userController controllers.IUserController) {
userGroup := router.Group("/users")
{
userGroup.POST("/register", userController.Register)
userGroup.POST("/login", userController.Login)
userGroup.GET("/profile", userController.GetProfile)
userGroup.PUT("/profile", userController.UpdateProfile)
}
}