expressjs / expressjs/express

Combinations of middleware series with "app.all" is broken since 4.18.0

Open
#6,579 2 comments 0 reactions 0 assignees View on GitHub
awaiting more info
Dominant language
JavaScript
Stars
69.5k
Forks
25k
Avg merge
4d 20h
Merged PRs (30d)
9

Description

looks like https://github.com/expressjs/express/issues/4913 is not fixed in 4.18.2
this is part of my code:

```
app.use(middleware.a);

app.get('/*', getter.a);

app.post('/*', poster.a);

app.use(middleware.b);

app.use('/somepath/otherpath',
middleware.c,
middleware.d,
middleware.e);

app.get('/*', getter.b);

app.all(
'/unicorn',
poster.b,
poster.c,
poster.d
);
```
POST /unicorn is not hitting app.all() but will work if changed to app.post()

what am I missing?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.