This commit is contained in:
2022-06-22 18:29:19 -05:00
parent 770344422d
commit 02e64daec5
9 changed files with 101 additions and 105 deletions

View File

@@ -176,7 +176,7 @@ namespace Gameboard.ShogiUI.Sockets.Controllers
}
[HttpGet]
public async Task<GetSessionsResponse> GetSessions()
public async Task<ActionResult<GetSessionsResponse>> GetSessions()
{
var user = await ReadUserOrThrow();
var sessions = await gameboardRepository.ReadSessionMetadatas();
@@ -190,11 +190,11 @@ namespace Gameboard.ShogiUI.Sockets.Controllers
.Select(s => mapper.Map(s))
.ToList();
return new GetSessionsResponse
return Ok(new GetSessionsResponse
{
PlayerHasJoinedSessions = sessionsJoinedByUser,
AllOtherSessions = sessionsNotJoinedByUser
};
});
}
[HttpPut("{gameName}")]