refactoring
This commit is contained in:
parent
9c100531ef
commit
92f333a4c4
26 changed files with 860 additions and 491 deletions
|
@ -19,10 +19,34 @@ namespace Sledgemapper.Api.Controllers
|
|||
await _mediator.Publish(new NewTileNotification(sessionName, tile));
|
||||
}
|
||||
|
||||
[HttpPost("session")]
|
||||
[HttpPost("overlay")]
|
||||
public async Task Post(string sessionName, [FromBody]Overlay overlay)
|
||||
{
|
||||
await _mediator.Publish(new NewOverlayNotification(sessionName, overlay));
|
||||
}
|
||||
|
||||
[HttpPost("wall")]
|
||||
public async Task Post(string sessionName, [FromBody]Wall wall)
|
||||
{
|
||||
await _mediator.Publish(new NewWallNotification(sessionName, wall));
|
||||
}
|
||||
|
||||
[HttpDelete("tile")]
|
||||
public async Task Delete(string sessionName, [FromBody]Tile tile)
|
||||
{
|
||||
await _mediator.Publish(new DeleteTileNotification(sessionName, tile));
|
||||
}
|
||||
|
||||
[HttpDelete("overlay")]
|
||||
public async Task Delete(string sessionName, [FromBody]Overlay overlay)
|
||||
{
|
||||
await _mediator.Publish(new DeleteOverlayNotification(sessionName, overlay));
|
||||
}
|
||||
|
||||
[HttpDelete("wall")]
|
||||
public async Task Delete(string sessionName, [FromBody]Wall wall)
|
||||
{
|
||||
await _mediator.Publish(new DeleteWallNotification(sessionName, wall));
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue