implement fix

This commit is contained in:
2026-02-11 21:10:33 +01:00
parent 802d8d26be
commit 4d85175fe1
5 changed files with 18 additions and 18 deletions

View File

@@ -1,4 +1,5 @@
using AipsCore.Application.Abstract;
using AipsCore.Application.Models.Whiteboard.Command.AddUserToWhiteboard;
using AipsCore.Application.Models.Whiteboard.Command.CreateWhiteboard;
using Microsoft.AspNetCore.Mvc;
@@ -14,4 +15,12 @@ public class WhiteboardController : ControllerBase
var whiteboardId = await dispatcher.Execute(command, cancellationToken);
return Ok(whiteboardId.IdValue);
}
[HttpPost("adduser")]
public async Task<IActionResult> AddUser(AddUserToWhiteboardCommand command, IDispatcher dispatcher,
CancellationToken cancellationToken)
{
await dispatcher.Execute(command, cancellationToken);
return Ok();
}
}