express-route-builder
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -56,6 +56,4 @@ 'use strict'; | ||
*/ | ||
addStatic (_dir, mountPath = null) { | ||
addStatic (dir, mountPath = null) { | ||
const dir = pathify(this.baseDir, _dir); | ||
if (mountPath) { | ||
@@ -62,0 +60,0 @@ this.app.use(this.express.static(mountPath, dir)); |
@@ -10,3 +10,3 @@ { | ||
"name": "express-route-builder", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "Quickly compile Express.js routes with minimal code.", | ||
@@ -13,0 +13,0 @@ "keywords": [ |
@@ -73,2 +73,2 @@ # Express-Route-Builder | ||
#### .addStatic(dir, prefix = null); | ||
Adds a directory to your express app where static files will be served up from. The directory will be relative to the `baseDir` specified in the constructor. The prefix parameter is optional and will be prepended to the file path in the URL, just like with express.static(). | ||
Adds a directory to your express app where static files will be served up from. The directory will be relative to the current working directory of your app so it's a good idea to specify an absolute path. The prefix parameter is optional and will be prepended to the file path in the URL, just like with express.static(). |
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
112