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