Skip to content

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

Open
@YuliaNormanHarambam

Description

@YuliaNormanHarambam

looks like #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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions