Background
背景
I'm making a simple web server using express.js on top of node.js. When I'm making the route handlers for my server I inevitably have to factor out some common functionalities. So I want to make a baseHandler which has all the common handler functionalities like DB connection, and when I'm writing other route handlers I want to 'extend' the baseHandler to conveniently obtain those common handler capabilities.I'm making a simple web serve