EvalueTonSavoir/server/controllers/auth.js
2024-09-24 22:00:28 -04:00

24 lines
No EOL
443 B
JavaScript

const authConfig = require('../config/auth.js');
class authController {
async getActive(req, res, next) {
try {
const authActive = authConfig.getActiveAuth();
const response = {
authActive
};
return res.json(response);
}
catch (error) {
return next(error); // Gérer l'erreur
}
}
}
module.exports = new authController;