Files
sweet/tests/fixture/routes/wildcard.tsx
T

16 lines
336 B
TypeScript

/** @jsx h */
import { h, PageConfig, PageProps } from "../client_deps.ts";
export default function WildcardPage({ params }: PageProps) {
if (typeof params.path === "string") {
return <p>{params.path}</p>;
} else {
return <p>Not a string.</p>;
}
}
export const config: PageConfig = {
routeOverride: "/foo/:path*",
};