🐛 Fix did not bind path for insight handler

This commit is contained in:
LittleSheep 2025-01-30 01:43:28 +08:00
parent e90458c049
commit 2ca6c615ff

View File

@ -44,6 +44,7 @@ func MapAPIs(app *fiber.App, baseURL string) {
posts.Get("/minimal", listPostMinimal) posts.Get("/minimal", listPostMinimal)
posts.Get("/drafts", listDraftPost) posts.Get("/drafts", listDraftPost)
posts.Get("/:postId", getPost) posts.Get("/:postId", getPost)
posts.Get("/:postId/insight", getPostInsight)
posts.Post("/:postId/react", reactPost) posts.Post("/:postId/react", reactPost)
posts.Post("/:postId/pin", pinPost) posts.Post("/:postId/pin", pinPost)
posts.Delete("/:postId", deletePost) posts.Delete("/:postId", deletePost)