diff --git a/source/routers/user.go b/source/routers/user.go new file mode 100644 index 0000000..08d573a --- /dev/null +++ b/source/routers/user.go @@ -0,0 +1,25 @@ +/** + * Created by fbonhomm + * Email: flo-github@outlook.fr + * Licence: MIT + */ + +package routers + +import ( + "github.com/fbonhomm/api-go/source/controllers" + "github.com/fbonhomm/api-go/source/validators" + "github.com/gin-gonic/gin" +) + +// 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) + } +}