@tomvisions, you can find quite a few examples on the official docs example page: https://expressjs.com/en/starter/examples.html
Additionally, mozilla has a fairly extensive tutorial on views and mvc-related contexts here: https://developer.mozilla.org/en-US/docs/Learn/Server-side/Express_Nodejs/routes
nextparameter, is it still considered a middleware?
next, and the handler function must come last
The app.router object, which was removed in Express 4, has made a comeback in Express 5. In the new version, this object is a just a reference to the base Express router, unlike in Express 3, where an app had to explicitly load it.