Refactor CSV import API call in CSVImportDialog to use a structured request body. Increase JSON payload limit in index.js to support larger CSV imports.

This commit is contained in:
sebseb7
2025-08-01 14:03:03 +02:00
parent cbc826a4e1
commit 6218fc3c12
2 changed files with 9 additions and 6 deletions

View File

@@ -14,7 +14,7 @@ const PORT = process.env.PORT || 5000;
// Middleware
app.use(cors());
app.use(express.json());
app.use(express.json({ limit: '10mb' })); // Increased limit for CSV imports
// Routes
app.use('/api/auth', authRoutes);