is there any method to work a middleware that can update a app.locals variable dynamically
currently I am on the middle of a ecommerce project using node. So, the problem is i want to show the count of notifications that admin received on the admin side. The notifications are the orders that user’s requested to return. because of that o want to show the notification coount on all admin ppages. To solve it i made a middleware.all to run whenever admin changes a page.