Flag post

This commit is contained in:
2025-02-17 15:30:55 +08:00
parent db59826253
commit 14c17eded8
6 changed files with 86 additions and 0 deletions

View File

@@ -62,6 +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/react", reactPost)
posts.Post("/:postId/pin", pinPost)
posts.Delete("/:postId", deletePost)