Organising

This commit is contained in:
Fred Boniface
2025-06-26 16:41:46 +01:00
parent eb580132cc
commit b6c590eab0
3 changed files with 62 additions and 36 deletions

View File

@@ -13,11 +13,6 @@ app.get("/test", (req: Request, res: Response) => {
app.post('/submit', (req, res) => {
const report = req.body;
// For now, just log it
console.log('📥 New form submission:');
// TODO: Validate and write to MongoDB later
handleFormData(report);
res.status(200).json({ status: 'ok', message: 'Form received' });
});