u
This commit is contained in:
@@ -63,7 +63,7 @@ export const authMiddleware = async (req, res, next) => {
|
||||
return next();
|
||||
}
|
||||
|
||||
if (req.path.startsWith('/api/agent')) {
|
||||
if (req.path === '/api/agent' || req.path.startsWith('/api/agent/')) {
|
||||
return next();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user