Bug fixes and refactoring

This commit is contained in:
AG
2025-12-06 16:14:28 +02:00
parent 4106f3b783
commit 890f4f0958
13 changed files with 188 additions and 214 deletions

View File

@@ -57,6 +57,7 @@ router.post('/login', async (req, res) => {
res.json({ success: true, user: userSafe, token });
} catch (error) {
console.error('Login error:', error);
res.status(500).json({ error: 'Server error' });
}
});