backend note implementation.

This commit is contained in:
Michele Scandura 2020-12-03 19:38:03 +00:00
parent 651aeb407b
commit fe3c0ed2cf
11 changed files with 185 additions and 75 deletions

View file

@ -54,6 +54,12 @@ namespace Sledgemapper.Api.Controllers
await _mediator.Send(new NewWallCommand(sessionName, wall, UserId));
}
[HttpPost("note")]
public async Task Post(string sessionName, [FromBody] Note note)
{
await _mediator.Send(new NewNoteCommand(sessionName, note, UserId));
}
[HttpDelete("tile")]
public async Task Delete(string sessionName, [FromBody] Tile tile)
{