rollback to koa-route@^2

This commit is contained in:
Lloyd Brookes
2015-11-17 16:01:17 +00:00
parent 694061b28f
commit 5983bacc23
4 changed files with 16 additions and 9 deletions

View File

@ -1,3 +1,5 @@
body {
background-color: IndianRed;
}
a { color: black }

View File

@ -3,6 +3,10 @@
</head>
<h1>Single Page App</h1>
<h2>Location: <span></span></h2>
<ul>
<li><a href="/login">/login</a></li>
<li><a href="/search">/search</a></li>
</ul>
<script>
document.querySelector('h2 span').textContent = window.location.pathname
</script>