diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-08-01 21:08:31 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-08-01 21:08:31 +0900 |
| commit | 6767acd3d9cc2cf5b778048ec6339b8c9123fbb5 (patch) | |
| tree | dc436435b043158275501eab4b79e5a64cf013d9 /backend/main.go | |
| parent | 5e6775c9c1efbbd3b08363ffda421a5996dc7143 (diff) | |
| download | iosdc-japan-2024-albatross-6767acd3d9cc2cf5b778048ec6339b8c9123fbb5.tar.gz iosdc-japan-2024-albatross-6767acd3d9cc2cf5b778048ec6339b8c9123fbb5.tar.zst iosdc-japan-2024-albatross-6767acd3d9cc2cf5b778048ec6339b8c9123fbb5.zip | |
refactor(backend): wrap ApiHandler with user authentication
Diffstat (limited to 'backend/main.go')
| -rw-r--r-- | backend/main.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/backend/main.go b/backend/main.go index d636af7..0257113 100644 --- a/backend/main.go +++ b/backend/main.go @@ -75,9 +75,7 @@ func main() { apiGroup := e.Group("/api") apiGroup.Use(oapimiddleware.OapiRequestValidator(openApiSpec)) apiHandler := api.NewHandler(queries, gameHubs) - api.RegisterHandlers(apiGroup, api.NewStrictHandler(apiHandler, []api.StrictMiddlewareFunc{ - api.NewJWTMiddleware(), - })) + api.RegisterHandlers(apiGroup, api.NewStrictHandler(apiHandler, nil)) gameHubs.Run() |
