From 64d57418223fdf94d75e204ad98a6bda0dcb34a4 Mon Sep 17 00:00:00 2001 From: elraphty Date: Fri, 8 Nov 2024 13:10:04 +0100 Subject: [PATCH] added auth to create connection code --- routes/connection_codes.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/routes/connection_codes.go b/routes/connection_codes.go index f39ed3341..5252f0b27 100644 --- a/routes/connection_codes.go +++ b/routes/connection_codes.go @@ -2,6 +2,7 @@ package routes import ( "github.com/go-chi/chi" + "github.com/stakwork/sphinx-tribes/auth" "github.com/stakwork/sphinx-tribes/db" "github.com/stakwork/sphinx-tribes/handlers" ) @@ -14,7 +15,7 @@ func ConnectionCodesRoutes() chi.Router { }) r.Group(func(r chi.Router) { - // r.Use(auth.PubKeyContextSuperAdmin) + r.Use(auth.PubKeyContextSuperAdmin) r.Post("/", authHandler.CreateConnectionCode) }) return r