mirror of
https://github.com/ets-cfuhrman-pfe/EvalueTonSavoir.git
synced 2025-08-11 21:23:54 -04:00
25 lines
No EOL
513 B
JavaScript
25 lines
No EOL
513 B
JavaScript
const AuthConfig = require('../config/auth.js');
|
|
|
|
class authController {
|
|
|
|
async getActive(req, res, next) {
|
|
try {
|
|
|
|
const authC = new AuthConfig();
|
|
authC.loadConfig();
|
|
|
|
const authActive = authC.getActiveAuth();
|
|
|
|
const response = {
|
|
authActive
|
|
};
|
|
return res.json(response);
|
|
}
|
|
catch (error) {
|
|
return next(error); // Gérer l'erreur
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
module.exports = new authController; |