Skip to content

Commit

Permalink
Merge pull request #1923 from stakwork/feat/v2_connection_codes
Browse files Browse the repository at this point in the history
added auth to create connection code
  • Loading branch information
elraphty authored Nov 8, 2024
2 parents 8fc1c48 + 64d5741 commit 9411fc6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion routes/connection_codes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand All @@ -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
Expand Down

0 comments on commit 9411fc6

Please sign in to comment.