sleepy-serv 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +10 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -221,6 +221,16 @@ At the time of this writing, `meta.js` only exports middleware functions.
221
221
 
222
222
  ## `createApp()` Options
223
223
 
224
+ ### `hostname`
225
+
226
+ The hostname can be customized like so:
227
+
228
+ ```js
229
+ createApp(import.meta.dirname, {
230
+ hostname: 'test.sleepy-serv.com',
231
+ })
232
+ ```
233
+
224
234
  ### `mountPath`
225
235
 
226
236
  This adds a prefix to all routes. For example:
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "sleepy-serv",
3
3
  "description": "A more opinionated web server for building REST-ful applications",
4
4
  "author": "Travis J True",
5
- "version": "0.2.0",
5
+ "version": "0.2.1",
6
6
  "exports": "./src/index.js",
7
7
  "type": "module",
8
8
  "keywords": [