mirror of
https://github.com/Impostor/Impostor.git
synced 2026-10-19 15:51:42 +00:00
Add stub for Find Lobby endpoint
Co-Authored-By: Niko233 <139348239+NikoCat233@users.noreply.github.com>
This commit is contained in:
1 parent
28e933092a
commit
fc2679a8d2
1 file changed
+17
@@ -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<GameListingV2>(),
|
||||
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
|
||||
|
||||
Reference in new issue
Block a user