hapi-route-manager
Advanced tools
Comparing version 1.0.2 to 1.0.3
17
index.js
@@ -15,9 +15,14 @@ var walk = require("walk"), | ||
if (fileStats.name.indexOf(".route.js") !== -1) { | ||
var filename = root + "/" + fileStats.name, | ||
route = root.replace(options.directory, ""), | ||
routeObject = require(path.resolve(filename)), | ||
apiVersion = route.split("/")[1], | ||
cleanRoute = route.replace("/" + apiVersion + "/", ""), | ||
nickname = ""; | ||
try { | ||
var filename = root + "/" + fileStats.name, | ||
route = root.replace(options.directory, ""), | ||
routeObject = require(path.resolve(filename)), | ||
apiVersion = route.split("/")[1], | ||
cleanRoute = route.replace("/" + apiVersion + "/", ""), | ||
nickname = ""; | ||
} catch(e) { | ||
throw e; | ||
} | ||
console.log(filename); | ||
@@ -24,0 +29,0 @@ |
{ | ||
"name": "hapi-route-manager", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"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
3969
78