express-routes-mapper
Advanced tools
Comparing version 0.0.4 to 0.0.5
{ | ||
"name": "express-routes-mapper", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "a small mapper for express routes", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -93,8 +93,8 @@ # express-routes-mapper | ||
* `import routes from './config/routes';` the file where all the routes are mapped | ||
* `import route from 'express-routes-mapper';` the package that makes the mapping possible | ||
* `app.use('/', route(routes));` tell express to use the mapped routes | ||
* `import mapRoutes from 'express-routes-mapper';` the package that makes the mapping possible | ||
* `app.use('/', mapRoutes(routes));` tell express to use the mapped routes | ||
and here | ||
* `var routes = require('./config/routes');` the file where all the routes are mapped | ||
* `var route = require('express-routes-mapper');` the package that makes the mapping possible | ||
* `app.use('/', route(routes));` tell express to use the mapped routes | ||
* `var mapRoutes = require('express-routes-mapper');` the package that makes the mapping possible | ||
* `app.use('/', mapRoutes(routes));` tell express to use the mapped routes | ||
@@ -101,0 +101,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7097