Skip to content

Commit 9692f57

Browse files
feat: provide widgets in create document from binary and create template from binary
1 parent f065589 commit 9692f57

File tree

1 file changed

+4
-4
lines changed
  • apps/OpenSignServer/cloud/customRoute/v1

1 file changed

+4
-4
lines changed

apps/OpenSignServer/cloud/customRoute/v1/apiV1.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ app.delete('/contact/:contact_id', deleteContact);
5050
app.get('/contactlist', getContactList);
5151

5252
// create Document
53-
app.post('/createdocumentwithbinary', upload.array('file', 1), createDocument);
53+
app.post('/createdocumentwithbinary', upload.array('file', 1), createDocumentwithCoordinate);
5454

5555
// create Document with co-ordinate
56-
app.post('/createdocument', upload.array('file', 1), createDocumentwithCoordinate);
56+
app.post('/createdocument', createDocumentwithCoordinate);
5757

5858
// create Document with base64 without placeholder
5959
app.post('/draftdocument', createDocument);
@@ -74,13 +74,13 @@ app.delete('/document/:document_id', deleteDocument);
7474
app.get('/documentlist/:doctype', getDocumentList);
7575

7676
// create Template with co-ordinate
77-
app.post('/createtemplate', upload.array('file', 1), createTemplatewithCoordinate);
77+
app.post('/createtemplate', createTemplatewithCoordinate);
7878

7979
// create Template
8080
app.post('/drafttemplate', createTemplate);
8181

8282
// create Template with binary
83-
app.post('/createtemplatewithbinary', upload.array('file', 1), createTemplate);
83+
app.post('/createtemplatewithbinary', upload.array('file', 1), createTemplatewithCoordinate);
8484

8585
// get template on the basis of id
8686
app.get('/template/:template_id', getTemplate);

0 commit comments

Comments
 (0)