Add getSessionsInfo route to authRoutes and export in authController
Despliegue Automático / desplegar (push) Successful in 35s

This commit is contained in:
2026-08-20 15:48:42 +02:00
parent 8f43890161
commit 32255ef103
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -133,4 +133,4 @@ const getSessionsInfo = async (req, res) => {
}
// Exportamos los handlers de auth.
module.exports = { register, login, refresh, logout, deleteAllData };
module.exports = { register, login, refresh, logout, deleteAllData, getSessionsInfo};
+2
View File
@@ -17,4 +17,6 @@ router.post('/logout', authController.logout);
// POST /api/auth/delete-all-data
router.post('/delete-all-data', authController.deleteAllData);
router.get('/getSessionsInfo', authController.getSessionsInfo);
module.exports = router;