From a00bfff91c254f3eedeb94273d4df2a17185572c Mon Sep 17 00:00:00 2001 From: xing Date: Sun, 18 Jun 2023 19:47:47 +0800 Subject: [PATCH] no route --- app/cmd/route/route.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/cmd/route/route.go b/app/cmd/route/route.go index 00a77cb..4fda57e 100644 --- a/app/cmd/route/route.go +++ b/app/cmd/route/route.go @@ -79,7 +79,7 @@ func SetupRouter() *gin.Engine { r.GET("/p/:id/feed", actions.PostFeed) r.GET("/feed", actions.Feed) r.GET("/comments/feed", actions.CommentsFeed) - r.NoRoute(actions.ThemeHook(constraints.NoRoute)) + //r.NoRoute(actions.ThemeHook(constraints.NoRoute)) commentMiddleWare, _ := middleware.FlowLimit(c.MaxRequestSleepNum, 5, c.CacheTime.SleepTime) r.POST("/comment", commentMiddleWare, actions.PostComment) if c.Pprof != "" {