chore: Add logic for put and get by id handler
Some checks failed
Backend ci / build (push) Has been cancelled
Some checks failed
Backend ci / build (push) Has been cancelled
This commit is contained in:
@@ -13,9 +13,9 @@ func Register(router *gin.Engine, db *sql.DB) {
|
||||
posts := v1.Group("posts")
|
||||
{
|
||||
posts.GET("/", handler_posts.GetPosts)
|
||||
posts.GET("/:id", GetPost)
|
||||
posts.GET("/:id", handler_posts.GetPost)
|
||||
posts.POST("/", handler_posts.CreatePost)
|
||||
posts.PUT("/:id", UpdatePost)
|
||||
posts.PUT("/:id", handler_posts.UpdatePost)
|
||||
posts.DELETE("/:id", DeletePost)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user