Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
palanik committed Feb 10, 2017
1 parent c450b78 commit c6bb972
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions README.md
@@ -1,5 +1,5 @@
# redirective
A shortcut to provide [redirect](https://expressjs.com/en/4x/api.html#res.redirect) callback to Express routes.
Shortcut to provide [redirect](https://expressjs.com/en/4x/api.html#res.redirect) callback to Express routes.

```JS
app.use('/users/:userId', redirect('https://new-server/users/:userId'));
Expand Down Expand Up @@ -76,7 +76,9 @@ Same signature as [`res.redirect`](http://expressjs.com/en/4x/api.html#res.redir

The url can have [Express Route](https://expressjs.com/en/guide/routing.html#route-parameters) style named parameters.

Named parameters in redirect url will be substituted with values from same named parameters in source path. Refer [example](#url-with-parameters).
Named parameters in redirect url will be substituted with values from same named parameters in source path.

Refer [example](#url-with-parameters).


## License
Expand Down
3 changes: 2 additions & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "redirective",
"version": "1.0.0",
"version": "1.1.0",
"description": "Node.js Express redirect shortcut",
"main": "lib/index.js",
"babel": {
Expand Down Expand Up @@ -34,6 +34,7 @@
"routing",
"middleware",
"redirect",
"param",
"redirection",
"redirector",
"redirective",
Expand Down

0 comments on commit c6bb972

Please sign in to comment.