rollback to koa-route@^2
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
body {
|
||||
background-color: IndianRed;
|
||||
}
|
||||
|
||||
a { color: black }
|
||||
|
@ -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>
|
||||
|
Reference in New Issue
Block a user