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));
|
||||
|
|
|
@ -10,7 +10,7 @@ namespace Sledgemapper
|
|||
{
|
||||
public interface IMapApi
|
||||
{
|
||||
[Post("/map/tile")]
|
||||
[Post("/tile")]
|
||||
Task NewTile([Body] Tile tile, string sessionName);
|
||||
}
|
||||
}
|
||||
|
|
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue