feat: add update template api and update all apis

This commit is contained in:
prafull-opensignlabs
2024-01-11 22:19:40 +05:30
parent ea9b0370c4
commit eebcfe94d9
14 changed files with 124 additions and 26 deletions
@@ -14,6 +14,7 @@ import createTemplate from './routes/createTemplate.js';
import getTemplate from './routes/getTemplate.js';
import deletedTemplate from './routes/deleteTemplate.js';
import getTemplatetList from './routes/getTemplateList.js';
import updateTemplate from './routes/updateTemplate.js';
dotenv.config();
app.use(cors());
@@ -47,9 +48,11 @@ app.post('/createtemplate', createTemplate);
// get template on the basis of id
app.get('/template/:template_id', getTemplate);
// get template on the basis of id
app.put('/template/:template_id', updateTemplate);
// get template on the basis of id
app.delete('/template/:template_id', deletedTemplate);
// get all types of documents on the basis of doctype
app.get('/templatelist', getTemplatetList);