From 2ca6c615ff20879b1ee11a5e3360c24fcfa1e3b0 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Thu, 30 Jan 2025 01:43:28 +0800 Subject: [PATCH] :bug: Fix did not bind path for insight handler --- pkg/internal/http/api/index.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/internal/http/api/index.go b/pkg/internal/http/api/index.go index 250760c..64c14a8 100644 --- a/pkg/internal/http/api/index.go +++ b/pkg/internal/http/api/index.go @@ -44,6 +44,7 @@ func MapAPIs(app *fiber.App, baseURL string) { posts.Get("/minimal", listPostMinimal) posts.Get("/drafts", listDraftPost) posts.Get("/:postId", getPost) + posts.Get("/:postId/insight", getPostInsight) posts.Post("/:postId/react", reactPost) posts.Post("/:postId/pin", pinPost) posts.Delete("/:postId", deletePost)