From 5be45db5245188fe802cebf43758ddde3fe3dad0 Mon Sep 17 00:00:00 2001 From: popstk Date: Thu, 9 Feb 2023 11:07:25 +0800 Subject: [PATCH] fix preview post router --- handler/router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler/router.go b/handler/router.go index 8bbedd6..7290319 100644 --- a/handler/router.go +++ b/handler/router.go @@ -110,7 +110,7 @@ func (s *Server) RegisterRouters() { postRouter.PUT("/:postID/status/draft/content", s.wrapHandler(s.PostHandler.UpdatePostDraft)) postRouter.DELETE("/:postID", s.wrapHandler(s.PostHandler.DeletePost)) postRouter.DELETE("", s.wrapHandler(s.PostHandler.DeletePostBatch)) - postRouter.GET("/preview/:postID", s.wrapHandler(s.PostHandler.PreviewPost)) + postRouter.GET("/:postID/preview", s.wrapHandler(s.PostHandler.PreviewPost)) { postCommentRouter := postRouter.Group("/comments") postCommentRouter.GET("", s.wrapHandler(s.PostCommentHandler.ListPostComment))