File tree Expand file tree Collapse file tree 5 files changed +263
-278
lines changed
src/components/SettingsDialog/Appearance/__tests__/__snapshots__ Expand file tree Collapse file tree 5 files changed +263
-278
lines changed Original file line number Diff line number Diff line change 1
1
package api
2
2
3
3
import (
4
+ "github.com/go-chi/chi/v5"
5
+ "github.com/go-chi/chi/v5/middleware"
4
6
"github.com/markbates/goth/gothic"
5
7
"net/http"
6
8
"os"
7
9
"time"
8
10
9
11
"github.com/go-chi/cors"
10
12
"github.com/go-chi/httprate"
11
- "github.com/go-chi/jwtauth/v5"
12
13
"github.com/go-chi/render"
13
14
"github.com/google/uuid"
14
15
gorillaSessions "github.com/gorilla/sessions"
@@ -18,9 +19,6 @@ import (
18
19
"scrumlr.io/server/logger"
19
20
"scrumlr.io/server/realtime"
20
21
"scrumlr.io/server/services"
21
-
22
- "github.com/go-chi/chi/v5"
23
- "github.com/go-chi/chi/v5/middleware"
24
22
)
25
23
26
24
type Server struct {
@@ -171,7 +169,7 @@ func (s *Server) publicRoutes(r chi.Router) chi.Router {
171
169
func (s * Server ) protectedRoutes (r chi.Router ) {
172
170
r .Group (func (r chi.Router ) {
173
171
r .Use (s .auth .Verifier ())
174
- r .Use (jwtauth . Authenticator )
172
+ r .Use (s . auth . Authenticator () )
175
173
r .Use (auth .AuthContext )
176
174
177
175
r .With (s .BoardTemplateRateLimiter ).Post ("/templates" , s .createBoardTemplate )
You can’t perform that action at this time.
0 commit comments