A simple way to better handle routers in NodeJS and Express
Daniele Margutti
572

Daniele, your trick is interesting but it looks like it doesn’t work when writing TypeScript. I tried it with `class CategoryRouter extends Router` but TypeScript complains that “Router is not a constructor function type”.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.