forbid now uses path-to-regexp paths.. docs.. rewrite examples

This commit is contained in:
Lloyd Brookes
2015-11-17 11:18:25 +00:00
parent 7a991cc5f7
commit b3de999e4d
11 changed files with 73 additions and 19 deletions

View File

@ -1,6 +1,6 @@
{
"rewrite": [
{ "from": "/css/*", "to": "/styles/$1" },
{ "from": "/css/*", "to": "/build/styles/$1" },
{ "from": "/npm/*", "to": "http://registry.npmjs.org/$1" },
{ "from": "/gh/:user/repo/:name", "to": "https://api.github.com/repos/:user/:name" }
]