From fc2679a8d264098b4493423dbfcad5067544ee0a Mon Sep 17 00:00:00 2001 From: miniduikboot Date: Wed, 26 Mar 2025 21:18:50 +0100 Subject: [PATCH] Add stub for Find Lobby endpoint Co-Authored-By: Niko233 <139348239+NikoCat233@users.noreply.github.com> --- src/Impostor.Server/Http/GamesController.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/Impostor.Server/Http/GamesController.cs b/src/Impostor.Server/Http/GamesController.cs index d7310e5..e1aad79 100644 --- a/src/Impostor.Server/Http/GamesController.cs +++ b/src/Impostor.Server/Http/GamesController.cs @@ -113,6 +113,23 @@ public sealed class GamesController : ControllerBase return Ok(new FindGameByCodeResponse(GameListingV2.From(game))); } + [HttpGet("filtered")] + public IActionResult ShowFilteredLobbies() + { + // TODO: implement this stub + var response = new + { + games = Array.Empty(), + metadata = new + { + allGamesCount = _gameManager.Games.Count(), + matchingGamesCount = 0, + }, + }; + + return Ok(response); + } + private static uint ConvertAddressToNumber(IPAddress address) { #pragma warning disable CS0618 // Among Us only supports IPv4 -- 2.39.5