A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
fix question router
aichy126b09fc6b15f95
diff --git a/internal/router/template_router.go b/internal/router/template_router.goindex de5bf6fc..87c91d20 100644--- a/internal/router/template_router.go+++ b/internal/router/template_router.go@@ -27,10 +27,10 @@ func (a *TemplateRouter) RegisterTemplateRouter(r *gin.RouterGroup) {r.GET("/", a.templateController.Index)r.GET("/index", a.templateController.Index)- r.GET("/questions", a.templateRenderController.Index)- r.GET("/questions/:id/", a.templateRenderController.QuestionDetail)- r.GET("/questions/:id/:title/", a.templateRenderController.QuestionDetail)- r.GET("/questions/:id/:title/:answerid", a.templateRenderController.AnswerDetail)+ r.GET("/questions", a.templateController.Index)+ r.GET("/questions/:id/", a.templateController.QuestionInfo)+ r.GET("/questions/:id/:title/", a.templateController.QuestionInfo)+ r.GET("/questions/:id/:title/:answerid", a.templateController.QuestionInfo)r.GET("/tags", a.templateController.TagList)r.GET("/tags/:tag", a.templateController.TagInfo)