aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/api/handler.go
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-03-08 13:48:57 +0900
committernsfisis <nsfisis@gmail.com>2025-03-08 13:48:57 +0900
commit6ca6cf90f705a26b0db2509214e4deb895980e50 (patch)
tree0bbaa4b3fa9e01244ff1948484e76de45eab5a94 /backend/api/handler.go
parentdad3b9b374c5632c403b4329e44367ebe839ed5a (diff)
downloadphperkaigi-2025-albatross-6ca6cf90f705a26b0db2509214e4deb895980e50.tar.gz
phperkaigi-2025-albatross-6ca6cf90f705a26b0db2509214e4deb895980e50.tar.zst
phperkaigi-2025-albatross-6ca6cf90f705a26b0db2509214e4deb895980e50.zip
fix
Diffstat (limited to 'backend/api/handler.go')
-rw-r--r--backend/api/handler.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/backend/api/handler.go b/backend/api/handler.go
index 26031f6..949c610 100644
--- a/backend/api/handler.go
+++ b/backend/api/handler.go
@@ -87,6 +87,7 @@ func (h *Handler) GetGames(ctx context.Context, _ GetGamesRequestObject, _ *auth
ProblemID: int(row.ProblemID),
Title: row.Title,
Description: row.Description,
+ SampleCode: row.SampleCode,
},
}
gameIDs[i] = row.GameID
@@ -162,6 +163,7 @@ func (h *Handler) GetGame(ctx context.Context, request GetGameRequestObject, _ *
ProblemID: int(row.ProblemID),
Title: row.Title,
Description: row.Description,
+ SampleCode: row.SampleCode,
},
MainPlayers: mainPlayers,
}