deno.land / x / fresh@1.1.1 / tests / fixture / routes / wildcard.tsx

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { 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*",};
fresh

Version Info

Tagged at
2 years ago