custom router now working

This commit is contained in:
Henri
2025-11-21 03:15:09 +02:00
parent 7dfb5adda1
commit e8651f6557
14 changed files with 435 additions and 191 deletions

View File

@@ -1 +1,2 @@
<div>demo page</div>
<h1>Demo Page</h1>
<a href="/">Back to Home</a>

View File

@@ -1 +1,5 @@
<div>test</div>
<h1>Home</h1>
<nav>
<a href="/demo">Demo</a>
<a href="/contact">Contact</a>
</nav>

View File

@@ -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
}