init
This commit is contained in:
commit
aee8bcc886
18 files changed
+960
No files matched your search
@@ -0,0 +1,14 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"gin_layout/internal/handler"
|
||||
"gin_layout/internal/service"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func registerUserRoutes(api *gin.RouterGroup, userService *service.UserService) {
|
||||
userHandler := handler.NewUserHandler(userService)
|
||||
api.POST("/users", userHandler.Create)
|
||||
api.GET("/users/:id", userHandler.GetByID)
|
||||
}
|
||||
Reference in new issue
Block a user