Files
hiring-test-one/example/rewrite/index.html

25 lines
665 B
HTML
Raw Normal View History

2015-11-16 13:22:51 +00:00
<head>
<link rel="stylesheet" href="css/style.css">
</head>
2015-11-16 20:47:34 +00:00
<h1>Rewriting paths</h1>
<h2>Config</h2>
<pre><code>
{
"rewrite": [
2015-11-17 15:13:22 +00:00
{ "from": "/css/*", "to": "/build/styles/$1" },
2015-11-16 20:47:34 +00:00
{ "from": "/npm/*", "to": "http://registry.npmjs.org/$1" },
{ "from": "/broken/*", "to": "http://localhost:9999" },
2015-11-17 15:13:22 +00:00
{ "from": "/:user/repos/:name", "to": "https://api.github.com/repos/:user/:name" }
2015-11-16 20:47:34 +00:00
]
}
</code></pre>
<h2>Links</h2>
<ul>
<li><a href="/css/style.css">/css/style.css</li>
<li><a href="/npm/local-web-server">/npm/local-web-server</a></li>
<li><a href="/broken/">/broken/</a></li>
2015-11-17 15:13:22 +00:00
<li><a href="/75lb/repos/work">/75lb/repos/work</a></li>
2015-11-16 20:47:34 +00:00
</ul>