aichbauer / express-routes-mapper

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

TypeError: handler is not a constructor #46

Closed theromie closed 4 years ago

theromie commented 4 years ago

After running jest test I am getting TypeError: handler is not a constructor I am using node version : v10.16.0 and mapper version : v1.1.0

code const mapRoutes = require('express-routes-mapper'); const mappedOpenRoutes = mapRoutes(config.publicRoutes, 'api/controllers/');

at mappedOpenRoutes = mapRoutes giving error