feat: WIP connections query endpoint

This commit is contained in:
2024-12-26 14:41:24 +01:00
parent 63bbf80ced
commit 9f5099c819
7 changed files with 81 additions and 32 deletions

View File

@@ -17,7 +17,7 @@ public class GetConnectionsEndpoint(PuzzleRepository _puzzleRepo) : Endpoint<Get
bool hideSolutions = Query<bool>("hideSolutions", isRequired: false);
// query for the puzzle
var puzzle = await _puzzleRepo.GetPuzzleByDateAsync(req.PrintDate, includeSolutions: !hideSolutions);
var puzzle = await _puzzleRepo.GetConnectionsByDateAsync(req.PrintDate, includeSolutions: !hideSolutions);
// if not found, done here
if (puzzle == null)