feat: add user delete route
parent
74ba42c6b7
commit
24bf072612
|
@ -15,11 +15,8 @@ import (
|
||||||
// main
|
// main
|
||||||
func User(router *gin.Engine) {
|
func User(router *gin.Engine) {
|
||||||
route := router.Group("/users")
|
route := router.Group("/users")
|
||||||
{
|
|
||||||
route.POST("/", validators.ValidateUserCreate, controllers.UserCreate)
|
route.POST("/", validators.ValidateUserCreate, controllers.UserCreate)
|
||||||
route.GET("/:id", validators.ValidateUserGetId, controllers.UserGetId)
|
route.GET("/:id", validators.ValidateUserGetId, controllers.UserGetId)
|
||||||
// route.GET("/", fetchAllTodo)
|
route.DELETE("/:id", validators.ValidateUserDeleteId, controllers.UserDeleteId)
|
||||||
// route.PUT("/:id", updateTodo)
|
|
||||||
// route.DELETE("/:id", deleteTodo)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue