feat(sender): add envelope draft save command and endpoint

This commit is contained in:
2026-09-25 14:21:08 +02:00
parent 42a853cb0d
commit 6e44d0d4b5
4 changed files with 363 additions and 0 deletions

View File

@@ -123,4 +123,12 @@ public class EnvelopeController : ControllerBase
return Ok(result);
}
[Authorize(AuthenticationSchemes = AuthScheme.Sender)]
[HttpPost("draft")]
public async Task<IActionResult> SaveDraftAsync([FromBody] SaveEnvelopeDraftCommand command)
{
var result = await _mediator.Send(command.WithAuth(User.GetId()));
return Ok(result);
}
}