mirror of
https://github.com/Lapikud/lapikud.github.io.git
synced 2026-08-09 00:39:13 +00:00
custom router now working
This commit is contained in:
@@ -1 +1,2 @@
|
||||
<div>demo page</div>
|
||||
<h1>Demo Page</h1>
|
||||
<a href="/">Back to Home</a>
|
||||
|
||||
@@ -1 +1,5 @@
|
||||
<div>test</div>
|
||||
<h1>Home</h1>
|
||||
<nav>
|
||||
<a href="/demo">Demo</a>
|
||||
<a href="/contact">Contact</a>
|
||||
</nav>
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
// ADD PAGES HERE TO REGISTER ROUTES
|
||||
// examples: '/page', '/page/:id'
|
||||
|
||||
import Demo from './Demo.svelte'
|
||||
import Home from './Home.svelte'
|
||||
|
||||
export const routes = {
|
||||
'/': Home,
|
||||
'/demo': Demo,
|
||||
// '/page': Page,
|
||||
// '/page/:id': Page, // with optional param
|
||||
}
|
||||
Reference in New Issue
Block a user