forbid now uses path-to-regexp paths.. docs.. rewrite examples
This commit is contained in:
@ -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" }
|
||||
]
|
||||
|
Reference in New Issue
Block a user