migrating session/map it to guid.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Michele Scandura 2021-09-16 16:51:07 +01:00
parent 155cb4ea9a
commit 195533bce0
17 changed files with 672 additions and 82 deletions

View file

@ -3,6 +3,7 @@ using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Sledgemapper.Api.Commands;
using Sledgemapper.Shared.Entities;
using System;
using System.Linq;
using System.Threading.Tasks;
@ -38,7 +39,7 @@ namespace Sledgemapper.Api.Controllers
}
[HttpPost("overlay")]
public async Task Post(string campaign, string mapName, [FromBody] Overlay overlay)
public async Task Post(Guid campaign, string mapName, [FromBody] Overlay overlay)
{
await _mediator.Send(new NewOverlayCommand(campaign, mapName, overlay, UserId));
}