Files
sweet/tests/fixture/routes/books/[id].tsx
T
Luca Casonato da340daeb2 BREAKING: move a bunch of types into server/ (#263)
Moved some server only types like `RouteConfig` into server/. They were
previously in runtime/.
2022-06-21 15:21:07 +02:00

12 lines
275 B
TypeScript

/** @jsx h */
import { h } from "preact";
import { PageProps, RouteConfig } from "$fresh/server.ts";
export default function Page(props: PageProps) {
return <div>Book {props.params.id}</div>;
}
export const config: RouteConfig = {
routeOverride: "/books/:id(\\d+)",
};