controller fixes

This commit is contained in:
Michele 2020-11-07 23:42:34 +00:00
parent dbc2a6d35e
commit 777608941b
3 changed files with 5 additions and 5 deletions

View file

@ -6,15 +6,15 @@ using System.Threading.Tasks;
namespace Sledgemapper.Api.Controllers namespace Sledgemapper.Api.Controllers
{ {
[Route("map")] [Route("tile")]
public class MapController : ControllerBase public class TileController : ControllerBase
{ {
private readonly IMediator _mediator; private readonly IMediator _mediator;
public MapController(IMediator mediator) { _mediator = mediator; } public TileController(IMediator mediator) { _mediator = mediator; }
[HttpPost] [HttpPost]
[ActionName("tile")]
public async Task Post(string sessionName, Tile tile) public async Task Post(string sessionName, Tile tile)
{ {
await _mediator.Publish(new NewTileNotification(sessionName, tile)); await _mediator.Publish(new NewTileNotification(sessionName, tile));

View file

@ -10,7 +10,7 @@ namespace Sledgemapper
{ {
public interface IMapApi public interface IMapApi
{ {
[Post("/map/tile")] [Post("/tile")]
Task NewTile([Body] Tile tile, string sessionName); Task NewTile([Body] Tile tile, string sessionName);
} }
} }

Binary file not shown.