fix: createdocument, createtemplate and createdocumentwithtemplate APIs not working

This commit is contained in:
prafull-opensignlabs
2024-01-28 16:34:08 +05:30
parent 17cb4479cb
commit fee3d8f672
4 changed files with 24 additions and 14 deletions
+4
View File
@@ -0,0 +1,4 @@
export function customAPIurl() {
const url = new URL(process.env.SERVER_URL);
return url.pathname === '/api/app' ? url.origin + '/api' : url.origin;
}