Comparing version 1.0.0 to 1.0.1
@@ -84,3 +84,3 @@ var _ = require('lodash'); | ||
var options = this.options; | ||
var separator = options.separator || '/'; | ||
var separator = options.pathSeparator || '/'; | ||
var basePath = options.basePath || '/'; | ||
@@ -87,0 +87,0 @@ var identifierPreprocessor = options.identifierPreprocessor || function(value) { return value; }; |
{ | ||
"name": "canal", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"author": "Benjamin Pannell <admin@sierrasoftworks.com>", | ||
@@ -5,0 +5,0 @@ "description": "A powerful route design helper for Express.js web applications", |
@@ -62,3 +62,10 @@ # Canal | ||
```javascript | ||
function Canal(app, routes, basePath = '/'); | ||
function Canal(app, routes, options = Canal.options); | ||
Canal.options = { | ||
registrar: Canal.Express.registrar, | ||
idenfifierPreprocessor: Canal.Express.identifierPreprocessor, | ||
basePath: '/', | ||
separator: '/' | ||
}; | ||
``` | ||
@@ -65,0 +72,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
15057
119