🐛 Fix flag endpoint uses Get method
This commit is contained in:
parent
c1567f713a
commit
c738cff381
@ -62,7 +62,7 @@ func MapAPIs(app *fiber.App, baseURL string) {
|
||||
posts.Get("/drafts", listDraftPost)
|
||||
posts.Get("/:postId", getPost)
|
||||
posts.Get("/:postId/insight", getPostInsight)
|
||||
posts.Get("/:postId/flag", createFlag)
|
||||
posts.Post("/:postId/flag", createFlag)
|
||||
posts.Post("/:postId/react", reactPost)
|
||||
posts.Post("/:postId/pin", pinPost)
|
||||
posts.Delete("/:postId", deletePost)
|
||||
|
Loading…
x
Reference in New Issue
Block a user