Skip to content

Commit 2ae02ac

Browse files
committed
chore: express-5-fixes
1 parent 5284f83 commit 2ae02ac

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

e2e/am-mock-api/src/app/routes.resource.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ async function authorization(req, res, next) {
6363

6464
export default function (app) {
6565
// Passthrough route that enforces authentication
66-
app.all('/resource/*', async (req, res, next) => {
66+
app.all('/resource/{*splat}', async (req, res, next) => {
6767
if (env.NODE_ENV === 'LIVE' && req.hostname === FORGEOPS) {
6868
// Only enforce authentication if IG is not used
6969
// In other words, the call comes directly from app
@@ -156,7 +156,7 @@ export default function (app) {
156156
}
157157
});
158158

159-
app.get('/resource/rest/*', wait, authorization, async (req, res) => {
159+
app.get('/resource/rest/{*splat}', wait, authorization, async (req, res) => {
160160
if (env.NODE_ENV === 'live') {
161161
if (req.access.actions && req.access.actions.GET) {
162162
res.json({ message: 'Successfully retrieved resource!' });

0 commit comments

Comments
 (0)