Control flow in express.js route – return vs next()

When working with routes, often two or more outcomes are wanted. This calls for controlling the flow of data when for instance sending and put request to the application. In contrary to an “normal” application – one that runs offline, that doesn’t follow the request-response architecture – one would usually use “return” in order toContinue reading “Control flow in express.js route – return vs next()”