aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/main.go
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-01 21:08:31 +0900
committernsfisis <nsfisis@gmail.com>2024-08-01 21:08:31 +0900
commit6767acd3d9cc2cf5b778048ec6339b8c9123fbb5 (patch)
treedc436435b043158275501eab4b79e5a64cf013d9 /backend/main.go
parent5e6775c9c1efbbd3b08363ffda421a5996dc7143 (diff)
downloadphperkaigi-2025-albatross-6767acd3d9cc2cf5b778048ec6339b8c9123fbb5.tar.gz
phperkaigi-2025-albatross-6767acd3d9cc2cf5b778048ec6339b8c9123fbb5.tar.zst
phperkaigi-2025-albatross-6767acd3d9cc2cf5b778048ec6339b8c9123fbb5.zip
refactor(backend): wrap ApiHandler with user authentication
Diffstat (limited to 'backend/main.go')
-rw-r--r--backend/main.go4
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()