diff options
Diffstat (limited to 'backend/main.go')
| -rw-r--r-- | backend/main.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/backend/main.go b/backend/main.go index fa5c079..1ea1fd1 100644 --- a/backend/main.go +++ b/backend/main.go @@ -148,7 +148,9 @@ func main() { apiGroup := e.Group("/api") apiGroup.Use(oapimiddleware.OapiRequestValidator(openApiSpec)) apiHandler := api.NewHandler(queries) - api.RegisterHandlers(apiGroup, api.NewStrictHandler(apiHandler, nil)) + api.RegisterHandlers(apiGroup, api.NewStrictHandler(apiHandler, []api.StrictMiddlewareFunc{ + api.NewJWTMiddleware(), + })) } e.GET("/sock/golf/:gameId/watch", func(c echo.Context) error { |
