diff --git a/pkg/internal/http/api/index.go b/pkg/internal/http/api/index.go index 34b99a0..929d0d4 100644 --- a/pkg/internal/http/api/index.go +++ b/pkg/internal/http/api/index.go @@ -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)