aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend
diff options
context:
space:
mode:
Diffstat (limited to 'backend')
-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,
}