feat: add user delete route

master
fbonhomm 2019-08-25 17:14:25 +02:00
parent 74ba42c6b7
commit 24bf072612
1 changed files with 4 additions and 7 deletions

View File

@ -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)
}