Middleware vs Route Handler: What's the Difference?
Developers often use “route handler” for the function that ultimately handles a matched route and sends the response, while preceding reusable functions are commonly called “middleware.”
Syntax: app.METHOD(PATH, MIDDLEWARE1, MIDDLEWARE2, HANDLER)