Skip to content

Commit

Permalink
Fix regex to exclude jsonparse create and update object
Browse files Browse the repository at this point in the history
  • Loading branch information
TimCsaky committed Sep 14, 2023
1 parent a994e76 commit 532e4d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ app.use(cors(DEFAULTCORS));
app.use(jsonParser.unless({
path: [{
// Matches on only the createObject and updateObject endpoints
url: /.*\/object(\/[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})?(\/)?$/i,
url: /.*(?<!permission)\/object(\/[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})?(\/)?(\?.*)?$/i,
methods: ['PUT']
}]
}));
Expand Down

0 comments on commit 532e4d6

Please sign in to comment.