/** @jsx h */ import { h } from "preact"; import { PageProps, RouteConfig } from "$fresh/server.ts"; export default function WildcardPage({ params }: PageProps) { if (typeof params.path === "string") { return

{params.path}

; } else { return

Not a string.

; } } export const config: RouteConfig = { routeOverride: "/foo/:path*", };