Redirect to home on successfully ading a new site

This commit is contained in:
Aarish
2025-05-25 18:24:42 -05:00
parent 4020b33293
commit e0daee72da

View File

@@ -59,7 +59,7 @@ router.post('/add', async function (req, res, next) {
if (!newSite) { if (!newSite) {
res.status(400).send('Error creating site'); res.status(400).send('Error creating site');
} else { } else {
res.status(201).json(newSite); res.redirect('/'); // status 304
} }
}); });