]> git.r.bdr.sh - rbdr/forum/blobdiff - src/routes/f/[id].svelte
Update to SvelteKit
[rbdr/forum] / src / routes / f / [id].svelte
diff --git a/src/routes/f/[id].svelte b/src/routes/f/[id].svelte
new file mode 100644 (file)
index 0000000..d1fae4c
--- /dev/null
@@ -0,0 +1,9 @@
+<script>
+  export async function load(ctx) {
+    let id = ctx.page.params.id
+    return { props: { id }}
+  }
+</script>
+
+<h1>Forum Index.</h1>
+<p>This component lists topics for forum with id: {id}</p>