aichbauer / express-routes-mapper

a small mapper for express routes
MIT License
21 stars 16 forks source link

Fix: instantiate a new router for separated routes (fixes #15) #16

Closed aichbauer closed 6 years ago

aichbauer commented 6 years ago

As mentioned in #15 there is a security issue. We need to instantiate a new router for every set of routes we pass (every time we call the function mapRoutes).

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 89.744% when pulling 7b226b96a7c7913d00debd7c5c4efad42805d2e7 on fix/seperateRouters into 545281cb78bef095a5e87406d4290f1283f7a32e on master.