top of page
​Games Technologist
Middleware
So here I am re-inspecting look at the ErrorLogger I created for my plant project - and altering how to have applied the middleware; the process of calling the middle ware is taking on a best practice approach, meaning I could even call the middle wave in the finally error handler should I choose to..
​
In the image below you will see that I have created a function, that is then called int he app.use function; I could go further and place this function into a different file that exports the function and allows the function to be required or imported to the main app.
​
This is best practice for middleware creation.

bottom of page