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

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