controller fixes
This commit is contained in:
parent
dbc2a6d35e
commit
777608941b
3 changed files with 5 additions and 5 deletions
|
@ -6,15 +6,15 @@ using System.Threading.Tasks;
|
|||
|
||||
namespace Sledgemapper.Api.Controllers
|
||||
{
|
||||
[Route("map")]
|
||||
public class MapController : ControllerBase
|
||||
[Route("tile")]
|
||||
public class TileController : ControllerBase
|
||||
{
|
||||
private readonly IMediator _mediator;
|
||||
|
||||
public MapController(IMediator mediator) { _mediator = mediator; }
|
||||
public TileController(IMediator mediator) { _mediator = mediator; }
|
||||
|
||||
[HttpPost]
|
||||
[ActionName("tile")]
|
||||
|
||||
public async Task Post(string sessionName, Tile tile)
|
||||
{
|
||||
await _mediator.Publish(new NewTileNotification(sessionName, tile));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue