update post Envelope to handle without object

This commit is contained in:
2025-09-04 18:45:00 +02:00
parent 1e1517f88a
commit 2c825d2fe3
3 changed files with 24 additions and 30 deletions

View File

@@ -44,7 +44,7 @@ public class EnvelopeController : ControllerBase
[Authorize(Roles = ReceiverRole.FullyAuth)]
[HttpPost("{envelopeKey}")]
public async Task<IActionResult> CreateOrUpdate([FromRoute] string envelopeKey, int index, [FromBody] ExpandoObject annotations, CancellationToken cancel = default)
public async Task<IActionResult> CreateOrUpdate([FromRoute] string envelopeKey, [FromBody] ExpandoObject annotations, CancellationToken cancel = default)
{
// get claims
var signature = User.GetAuthReceiverSignature();
@@ -66,7 +66,7 @@ public class EnvelopeController : ControllerBase
await _mediator.Publish(notification, cancel);
return Ok(new object());
return Ok();
}
[Authorize(Roles = ReceiverRole.FullyAuth)]