You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
411 B
16 lines
411 B
1 month ago
|
package routes
|
||
|
|
||
|
import (
|
||
1 month ago
|
"gofaster/internal/auth/controller"
|
||
1 month ago
|
|
||
|
"github.com/gin-gonic/gin"
|
||
|
)
|
||
|
|
||
|
func RegisterUserRoutes(router *gin.RouterGroup, userCtrl *controller.UserController) {
|
||
|
router.GET("/users", userCtrl.ListUsers)
|
||
|
router.POST("/users", userCtrl.CreateUser)
|
||
|
router.GET("/users/:id", userCtrl.GetUser)
|
||
|
router.PUT("/users/:id", userCtrl.UpdateUser)
|
||
|
router.DELETE("/users/:id", userCtrl.DeleteUser)
|
||
|
}
|