full flow with overlays
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d0663e1471
commit
9abe30904f
16 changed files with 564 additions and 26 deletions
|
@ -19,7 +19,7 @@ namespace Sledgemapper.Api.Controllers
|
|||
public MapController(IMediator mediator) => _mediator = mediator;
|
||||
|
||||
[HttpPost]
|
||||
public async Task<bool> Post(string campaign, string mapName)
|
||||
public async Task<Guid> Post(string campaign, string mapName)
|
||||
{
|
||||
var result = await _mediator.Send(new NewSessionCommand(campaign, mapName, UserId));
|
||||
return result;
|
||||
|
@ -39,7 +39,7 @@ namespace Sledgemapper.Api.Controllers
|
|||
}
|
||||
|
||||
[HttpPost("overlay")]
|
||||
public async Task Post(Guid campaign, string mapName, [FromBody] Overlay overlay)
|
||||
public async Task Post(Guid campaign, Guid mapName, [FromBody] Overlay overlay)
|
||||
{
|
||||
await _mediator.Send(new NewOverlayCommand(campaign, mapName, overlay, UserId));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue