From 32255ef103817f0b8480e28ed92e2b5eedf502ea Mon Sep 17 00:00:00 2001 From: Marcos Date: Thu, 20 Aug 2026 15:48:42 +0200 Subject: [PATCH] Add getSessionsInfo route to authRoutes and export in authController --- src/controllers/authController.js | 2 +- src/routes/authRoutes.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/controllers/authController.js b/src/controllers/authController.js index c143362..b333223 100644 --- a/src/controllers/authController.js +++ b/src/controllers/authController.js @@ -133,4 +133,4 @@ const getSessionsInfo = async (req, res) => { } // Exportamos los handlers de auth. -module.exports = { register, login, refresh, logout, deleteAllData }; \ No newline at end of file +module.exports = { register, login, refresh, logout, deleteAllData, getSessionsInfo}; \ No newline at end of file diff --git a/src/routes/authRoutes.js b/src/routes/authRoutes.js index b2c7fb3..5c29054 100644 --- a/src/routes/authRoutes.js +++ b/src/routes/authRoutes.js @@ -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; \ No newline at end of file