Skip to content

Commit bdccde9

Browse files
authored
Fixed No authorization token found error
1 parent 91911c6 commit bdccde9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const app = express()
1414

1515
app.use(bodyParser.json())
1616
app.use(helmet())
17-
app.use(jwt({ secret: secretCallback }).unless({ path: [ '/api/health-check', '/api/users', '/api/auth/login', '/api/users/testmysqlroute', '/api/fileupload' ], requestProperty: 'auth' }))
17+
app.use('/api', jwt({ secret: secretCallback }).unless({ path: [ '/api/health-check', '/api/users', '/api/auth/login', '/api/users/testmysqlroute', '/api/fileupload' ], requestProperty: 'auth' }))
1818
app.use('/api', Router)
1919

2020
// Handle 404

0 commit comments

Comments
 (0)