feat: add user delete route
parent
74ba42c6b7
commit
24bf072612
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue