From 9692f57663e9ecad07a14b9ac9a05f5b8fc7adc8 Mon Sep 17 00:00:00 2001 From: prafull-opensignlabs Date: Mon, 5 Feb 2024 13:29:36 +0530 Subject: [PATCH] feat: provide widgets in create document from binary and create template from binary --- apps/OpenSignServer/cloud/customRoute/v1/apiV1.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/OpenSignServer/cloud/customRoute/v1/apiV1.js b/apps/OpenSignServer/cloud/customRoute/v1/apiV1.js index cf671c8d9..7befaec65 100644 --- a/apps/OpenSignServer/cloud/customRoute/v1/apiV1.js +++ b/apps/OpenSignServer/cloud/customRoute/v1/apiV1.js @@ -50,10 +50,10 @@ app.delete('/contact/:contact_id', deleteContact); app.get('/contactlist', getContactList); // create Document -app.post('/createdocumentwithbinary', upload.array('file', 1), createDocument); +app.post('/createdocumentwithbinary', upload.array('file', 1), createDocumentwithCoordinate); // create Document with co-ordinate -app.post('/createdocument', upload.array('file', 1), createDocumentwithCoordinate); +app.post('/createdocument', createDocumentwithCoordinate); // create Document with base64 without placeholder app.post('/draftdocument', createDocument); @@ -74,13 +74,13 @@ app.delete('/document/:document_id', deleteDocument); app.get('/documentlist/:doctype', getDocumentList); // create Template with co-ordinate -app.post('/createtemplate', upload.array('file', 1), createTemplatewithCoordinate); +app.post('/createtemplate', createTemplatewithCoordinate); // create Template app.post('/drafttemplate', createTemplate); // create Template with binary -app.post('/createtemplatewithbinary', upload.array('file', 1), createTemplate); +app.post('/createtemplatewithbinary', upload.array('file', 1), createTemplatewithCoordinate); // get template on the basis of id app.get('/template/:template_id', getTemplate);