update post Envelope to handle without object
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user