From 62dfa54478b5eb3320c004a15cbbfd9f0f116843 Mon Sep 17 00:00:00 2001 From: Ryan Stafford Date: Wed, 28 Feb 2024 06:20:07 -0500 Subject: [PATCH] disable link routes --- routes.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes.go b/routes.go index 4f4f11d..944f694 100644 --- a/routes.go +++ b/routes.go @@ -1560,7 +1560,7 @@ func GetRouter() *httprouter.Router { router.GET("/:host/create_community", middleware(GetCreateCommunity)) router.POST("/:host/create_community", middleware(UserOp)) router.GET("/:host/communities", middleware(GetCommunities)) - router.GET("/:host/link", middleware(GetLink)) + //router.GET("/:host/link", middleware(GetLink)) } else { router.ServeFiles("/_/static/*filepath", http.Dir("public")) router.GET("/", middleware(GetFrontpage)) @@ -1593,7 +1593,7 @@ func GetRouter() *httprouter.Router { router.GET("/create_community", middleware(GetCreateCommunity)) router.POST("/create_community", middleware(UserOp)) router.GET("/communities", middleware(GetCommunities)) - router.GET("/link", middleware(GetLink)) + //router.GET("/link", middleware(GetLink)) } return router }