progress
This commit is contained in:
parent
9ef43bb9f6
commit
0a4b8ebeb2
14 changed files with 157 additions and 28 deletions
|
@ -33,6 +33,13 @@ namespace Sledgemapper.Api.Controllers
|
|||
return result;
|
||||
}
|
||||
|
||||
[HttpPost("snapshot")]
|
||||
public async Task Post(string sessionName, [FromBody] Session session)
|
||||
{
|
||||
var userId = int.Parse(HttpContext.User.Identity.Name);
|
||||
await _mediator.Send(new SaveNewSnapshotCommand(sessionName, session, userId));
|
||||
}
|
||||
|
||||
[HttpPost("tile")]
|
||||
public async Task Post(string sessionName, [FromBody] Tile tile)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue