The Guard at Your API’s Gate : Middleware in Express, explained simply
Introduction In a real application, a lot of work happens before the route runs like logging the request, reading the JSON body, checking if the user is logged in and validating the input. If we write

