yep
This commit is contained in:
@@ -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}")]
|
||||
|
||||
Reference in New Issue
Block a user