🐛 fixes routing
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { route } from "../../core/route.js";
|
||||
import { html } from "lit";
|
||||
|
||||
export const path = "/episodes" as const;
|
||||
export const routes = route(
|
||||
{
|
||||
path: "/episodes/:id",
|
||||
async enter() {
|
||||
await import("./index.js");
|
||||
return true;
|
||||
},
|
||||
render({ id }){
|
||||
return html`<app-episode id=${id}></app-episode>`;
|
||||
},
|
||||
},
|
||||
);
|
||||
Reference in New Issue
Block a user