From 64a87bafb24d46c71ebbcb2ecaf5b9f6f799ff22 Mon Sep 17 00:00:00 2001 From: aichy126 <16996097+aichy126@users.noreply.github.com> Date: Wed, 23 Nov 2022 18:17:06 +0800 Subject: [PATCH] update unreviewed revisions router --- internal/router/answer_api_router.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/router/answer_api_router.go b/internal/router/answer_api_router.go index d798e4b1..4ccf741b 100644 --- a/internal/router/answer_api_router.go +++ b/internal/router/answer_api_router.go @@ -123,7 +123,6 @@ func (a *AnswerAPIRouter) RegisterUnAuthAnswerAPIRouter(r *gin.RouterGroup) { //revision r.GET("/revisions", a.revisionController.GetRevisionList) - r.GET("/revisions/unreviewed", a.revisionController.GetUnreviewedRevisionList) // tag r.GET("/tags/page", a.tagController.GetTagWithPage) @@ -209,6 +208,10 @@ func (a *AnswerAPIRouter) RegisterAnswerAPIRouter(r *gin.RouterGroup) { // activity r.GET("/activity/timeline", a.activityController.GetObjectTimeline) r.GET("/activity/timeline/detail", a.activityController.GetObjectTimelineDetail) + + //revisions + r.GET("/revisions/unreviewed", a.revisionController.GetUnreviewedRevisionList) + } func (a *AnswerAPIRouter) RegisterAnswerCmsAPIRouter(r *gin.RouterGroup) {