diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-09-17 19:14:32 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-09-17 19:23:56 +0900 |
| commit | faff26b13da82747fb0efdb6bf1312a9b14d3916 (patch) | |
| tree | eb510dc3f92bdb916ff5bdc1191763ff48cf4332 /backend/api/handler_wrapper.go | |
| parent | 4615ca9b8b1989d315ae2322556697b97161b97b (diff) | |
| download | iosdc-japan-2025-albatross-faff26b13da82747fb0efdb6bf1312a9b14d3916.tar.gz iosdc-japan-2025-albatross-faff26b13da82747fb0efdb6bf1312a9b14d3916.tar.zst iosdc-japan-2025-albatross-faff26b13da82747fb0efdb6bf1312a9b14d3916.zip | |
feat(backend,frontend): implement tournament page
Diffstat (limited to 'backend/api/handler_wrapper.go')
| -rw-r--r-- | backend/api/handler_wrapper.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/backend/api/handler_wrapper.go b/backend/api/handler_wrapper.go index 9c6c41a..c592ed8 100644 --- a/backend/api/handler_wrapper.go +++ b/backend/api/handler_wrapper.go @@ -99,6 +99,18 @@ func (h *HandlerWrapper) GetGames(ctx context.Context, request GetGamesRequestOb return h.impl.GetGames(ctx, request, user) } +func (h *HandlerWrapper) GetTournament(ctx context.Context, request GetTournamentRequestObject) (GetTournamentResponseObject, error) { + user, err := parseJWTClaimsFromAuthorizationHeader(request.Params.Authorization) + if err != nil { + return GetTournament401JSONResponse{ + UnauthorizedJSONResponse: UnauthorizedJSONResponse{ + Message: "Unauthorized", + }, + }, nil + } + return h.impl.GetTournament(ctx, request, user) +} + func (h *HandlerWrapper) PostGamePlayCode(ctx context.Context, request PostGamePlayCodeRequestObject) (PostGamePlayCodeResponseObject, error) { user, err := parseJWTClaimsFromAuthorizationHeader(request.Params.Authorization) if err != nil { |
