Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "commuter", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A minimal, composable router that supports sub-routes.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -15,3 +15,3 @@ # commuter | ||
router.get('/post/:slug', onRoute) | ||
router.get('/post/:title', onRoute) | ||
@@ -67,3 +67,3 @@ //later, a GET request is made with the url '/post/some-title' | ||
are matched in the order they were added. | ||
- `request` - An [http.IncomingMessage][request], as called by an | ||
- `request` - An [http.IncomingMessage][request], as passed by an | ||
[http.Server][server] or similar. | ||
@@ -70,0 +70,0 @@ - `args` - Any number of arguments which will be passed to the matched |
10978