20-11-23
This commit is contained in:
@@ -9,25 +9,6 @@
|
||||
.then(res => res.arrayBuffer());
|
||||
}
|
||||
|
||||
postDocument(envelopeKey, documentId, buffer) {
|
||||
const url = `/api/document/${envelopeKey}?index=${documentId}`;
|
||||
const options = {
|
||||
credentials: "include",
|
||||
method: "POST",
|
||||
body: buffer
|
||||
}
|
||||
|
||||
console.debug("PostDocument/Calling url: " + url)
|
||||
return fetch(url, this.withCSRFToken(options))
|
||||
.then(this.handleResponse)
|
||||
.then((res) => {
|
||||
if (!res.ok) {
|
||||
return false;
|
||||
};
|
||||
return true;
|
||||
});
|
||||
}
|
||||
|
||||
postEnvelope(envelopeKey, documentId, jsonString) {
|
||||
const url = `/api/envelope/${envelopeKey}?index=${documentId}`;
|
||||
const options = {
|
||||
@@ -47,12 +28,11 @@
|
||||
});
|
||||
}
|
||||
|
||||
postHistory(envelopeKey, actionType, actionDescription) {
|
||||
postHistory(envelopeKey, actionType) {
|
||||
const url = `/api/history/${envelopeKey}`;
|
||||
|
||||
const data = {
|
||||
actionDescription: actionDescription,
|
||||
actionType: actionType.toString()
|
||||
actionType: actionType
|
||||
}
|
||||
|
||||
const options = {
|
||||
|
||||
Reference in New Issue
Block a user