Skip to content

Commit b3ebb07

Browse files
🔨 Exclude public folder form authentication
1 parent e82dc0c commit b3ebb07

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

helpers/jwt.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ function authJwt() {
99
isRevoked : isRevoked
1010
}).unless({
1111
path: [
12+
{url: /\/public\/uploads(.*)/, methods: ['GET', 'OPTIONS'] },
1213
{url: /\/api\/v1\/products(.*)/, methods: ['GET', 'OPTIONS']},
1314
{url: /\/api\/v1\/categories(.*)/, methods: ['GET', 'OPTIONS']},
1415
`${api}/users/login`,

0 commit comments

Comments
 (0)