Organising
This commit is contained in:
@@ -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' });
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user