integration of authentication
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user