Atmint commited on
Commit
3f2b8d0
·
verified ·
1 Parent(s): a222c8c

Update server.js

Browse files
Files changed (1) hide show
  1. server.js +2 -0
server.js CHANGED
@@ -37,6 +37,7 @@ app.post('/api/convert', upload.array('files'), async (req, res) => {
37
  const files = req.files;
38
  const targetVersion = req.body.targetVersion;
39
  const outputFormat = req.body.outputFormat || 'DWG';
 
40
 
41
  if (!files || files.length === 0) {
42
  return res.status(400).json({ error: 'No files uploaded' });
@@ -65,6 +66,7 @@ app.post('/api/convert', upload.array('files'), async (req, res) => {
65
  outputDir: outputDir,
66
  targetVersion: targetVersion,
67
  outputFormat: outputFormat,
 
68
  audit: true,
69
  });
70
 
 
37
  const files = req.files;
38
  const targetVersion = req.body.targetVersion;
39
  const outputFormat = req.body.outputFormat || 'DWG';
40
+ const targetCRS = req.body.targetCRS; // e.g. "EPSG:4326"
41
 
42
  if (!files || files.length === 0) {
43
  return res.status(400).json({ error: 'No files uploaded' });
 
66
  outputDir: outputDir,
67
  targetVersion: targetVersion,
68
  outputFormat: outputFormat,
69
+ targetCRS: targetCRS,
70
  audit: true,
71
  });
72