We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f49bf40 commit cf9c783Copy full SHA for cf9c783
1 file changed
routes/post_route.go
@@ -19,7 +19,7 @@ func Post(route *gin.Engine, injector *do.Injector) {
19
routes.POST("", middleware.Authenticate(jwtService), postController.CreatePost)
20
routes.GET("/:post_id", postController.GetPostById)
21
routes.DELETE("/:post_id", middleware.Authenticate(jwtService), postController.DeletePostById)
22
- routes.PATCH("/:post_id", middleware.Authenticate(jwtService), postController.UpdatePostById)
+ routes.PUT("/:post_id", middleware.Authenticate(jwtService), postController.UpdatePostById)
23
routes.GET("", postController.GetAllPosts)
24
}
25
0 commit comments