refactor(EnvelopeController): migrate envelope update to MediatR with annotations

- Renamed `Update` action to `CreateOrUpdate`.
- Replaced manual signing logic with `_mediator.SignDocAsync`.
- Added `ExpandoObject` parameter to handle document annotations.
- Improved authorization checks and logging for missing claims.
- Kept legacy `Reject` endpoint intact with obsolete services.
This commit is contained in:
2025-08-25 16:40:46 +02:00
parent 00bdfeb9bb
commit 0939e57c56
3 changed files with 18 additions and 25 deletions

View File

@@ -277,7 +277,6 @@ class App {
try {
const json = await iJSON
const postEnvelopeResult = await this.Network.postEnvelope(
this.envelopeKey,
this.currentDocument.id,
json
)

View File

@@ -15,8 +15,8 @@
* @param {any} documentId
* @param {any} json
*/
async postEnvelope(envelopeKey, documentId, json) {
return this.postRequest(`/api/envelope/${envelopeKey}?index=${documentId}`, json)
async postEnvelope(documentId, json) {
return this.postRequest(`/api/envelope?index=${documentId}`, json)
.then(this.wrapJsonResponse.bind(this))
}