Skip to content

🔥 The free & Open Source DocuSign alternative

feat: api for createtemplate using base64 and binary

prafull-opensignlabsbbedb13f3ef6
diff --git a/apps/OpenSignServer/cloud/customRoute/v1/apiV1.js b/apps/OpenSignServer/cloud/customRoute/v1/apiV1.js
index 6938d02f2..b4a5449b3 100644
--- a/apps/OpenSignServer/cloud/customRoute/v1/apiV1.js
+++ b/apps/OpenSignServer/cloud/customRoute/v1/apiV1.js
@@ -70,7 +70,10 @@ app.delete('/document/:document_id', deleteDocument);
app.get('/documentlist/:doctype', getDocumentList);
// create Template
-app.post('/createtemplate', upload.array('file', 1), createTemplate);
+app.post('/createtemplate', createTemplate);
+
+// create Template with binary
+app.post('/createtemplatewithbinary', upload.array('file', 1), createTemplate);
// get template on the basis of id
app.get('/template/:template_id', getTemplate);