update
This commit is contained in:
@ -24,7 +24,12 @@ export default class JwtHelper {
|
||||
}
|
||||
return null;
|
||||
},
|
||||
}).unless({ path: ["/token"] }),
|
||||
}).unless({
|
||||
path: [
|
||||
"/token",
|
||||
/^\/uploads\/.*/ // ⚠️ TAMBAHKAN INI - exclude semua path /uploads/
|
||||
]
|
||||
}),
|
||||
function (req: Request, res: Response, next: NextFunction) {
|
||||
if (!req.auth?.data.id) {
|
||||
return ReturnHelper.errorResponse(res, 403, 666, Language.lang.failed_access);
|
||||
|
||||
Reference in New Issue
Block a user