Comparing version 5.0.2 to 5.0.3
@@ -7,3 +7,3 @@ { | ||
"name": "ctl", | ||
"version": "5.0.2", | ||
"version": "5.0.3", | ||
"dependencies": { | ||
@@ -10,0 +10,0 @@ "app-module-path": "^2.2.0", |
@@ -21,3 +21,8 @@ # ctl | ||
In `index.js`: | ||
You can run a server simply with | ||
```bash | ||
PORT=8001 node -e 'require("ctl").init()' | ||
``` | ||
Or for more complex settings, `index.js`: | ||
```js | ||
@@ -24,0 +29,0 @@ require('ctl').init(opts) // options optional, see below for full doc |
@@ -13,3 +13,3 @@ const http = require('http'); | ||
app.set('x-powered-by', false); | ||
if (opts.static) { | ||
if (opts.staticDir && opts.static !== false) { | ||
app.use(opts.static, express.static(opts.staticDir)); | ||
@@ -16,0 +16,0 @@ } |
70091
139