79367383

Date: 2025-01-18 15:11:59
Score: 1.5
Natty:
Report link

app.use() is especially designed for middlewares.

app.all(*) is intended to handle all the request coming to only & only to particular path only "/PATH" not for /PATH/MOREPATH, unless explicitly specified with wildcards or regex.

To handle /path and all sub-paths, you would need to use a wildcard like app.all('/path*', ...).

So , that's a basic difference .

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Priyaanshu Soni