deno.land / x / fresh@1.1.1 / tests / fixture / routes / wildcard.tsx
1234567891011121314import { PageProps, RouteConfig } from "$fresh/server.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: RouteConfig = { routeOverride: "/foo/:path*",};
Version Info