integration of authentication

This commit is contained in:
2024-08-06 17:44:28 +02:00
parent 0c7fc6fdf7
commit ee932a2339
13 changed files with 153 additions and 84 deletions
+10
View File
@@ -185,6 +185,16 @@ exports.current = asyncHandler(async (req, res, next) => {
});
exports.agentConnected = asyncHandler(async (req, res, next) => {
try{
res.status(200).send("OK");
}catch(err){
console.log(err);
return res.status(500).send(err);
}
});
exports.getAllUsers = asyncHandler(async (req, res, next) => {
try{
const userDb = await UserDb.init();