Skip to content

Commit

Permalink
Merge pull request #209 from bcgov/jsonparser
Browse files Browse the repository at this point in the history
Fix regex to exclude jsonparse create and update object
  • Loading branch information
norrisng-bc authored Sep 14, 2023
2 parents a994e76 + 532e4d6 commit b94bb30
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 b94bb30

Please sign in to comment.