Added GetAllOffset. Post controller completed.
This commit is contained in:
parent
5b18009658
commit
41944884b4
12 changed files with 229 additions and 71 deletions
|
|
@ -11,8 +11,10 @@ func BindPostAdmin(service *services.PostService, group *gin.RouterGroup) {
|
|||
post := controllers.CreatePostController(service)
|
||||
|
||||
g := group.Group("/post")
|
||||
g.GET("/", post.GetAllPost)
|
||||
g.GET("/:id", post.GetByIdPost)
|
||||
g.POST("/", post.PostPost)
|
||||
g.PUT("/:id", post.PutPost)
|
||||
g.GET("/", post.GetAll)
|
||||
g.GET("/offset/:offset", post.GetAllWithOffset)
|
||||
g.GET("/:id", post.GetById)
|
||||
g.POST("/", post.Post)
|
||||
g.PUT("/:id", post.Put)
|
||||
g.DELETE("/:id", post.Delete)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue