diff --git a/source/routers/user.go b/source/routers/user.go index 08d573a..dd64e18 100644 --- a/source/routers/user.go +++ b/source/routers/user.go @@ -15,11 +15,8 @@ import ( // main func User(router *gin.Engine) { route := router.Group("/users") - { - route.POST("/", validators.ValidateUserCreate, controllers.UserCreate) - route.GET("/:id", validators.ValidateUserGetId, controllers.UserGetId) - // route.GET("/", fetchAllTodo) - // route.PUT("/:id", updateTodo) - // route.DELETE("/:id", deleteTodo) - } + + route.POST("/", validators.ValidateUserCreate, controllers.UserCreate) + route.GET("/:id", validators.ValidateUserGetId, controllers.UserGetId) + route.DELETE("/:id", validators.ValidateUserDeleteId, controllers.UserDeleteId) }