hapi-route-manager
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -50,3 +50,7 @@ var walk = require('walk'), | ||
try { | ||
var route = `${root.replace(options.directory, '')}/${fileStats.name.replace('.route.js', '')}`; | ||
var endpointNameFromFile = fileStats.name === 'index.route.js' | ||
? '' | ||
: `/${fileStats.name.replace('.route.js', '')}`; | ||
var route = `${root.replace(options.directory, '')}${endpointNameFromFile}`; | ||
var apiVersion = route.split('/')[1].match(versionRegex)[0]; | ||
@@ -53,0 +57,0 @@ var cleanRoute = route.replace('/' + apiVersion + '/', ''); // aka just no version info |
{ | ||
"name": "hapi-route-manager", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "(Under Development) Yet another route manager for versioned HAPI REST APIs", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
10053
240