Spaces:
Running
Running
Update server.js
Browse files
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 |
|