Wednesday, 16 September 2020

Express middleware question

Hi,I was going through the original express middleware guide for review and they have the following snippet:​https://preview.redd.it/g2shankzgkn51.png?width=1748&format=png&auto=webp&s=79b5fd5ae08547e774ee557f8263444803e575b6my question is: why do they return next('router') instead of just calling the function next('router')?

Submitted September 16, 2020 at 09:08PM by wastedtimez

No comments:

Post a Comment