This commit updates fresh to use import maps instead of deps files in generated projects.
16 lines
338 B
TypeScript
16 lines
338 B
TypeScript
/** @jsx h */
|
|
|
|
import { h, PageProps, RouteConfig } from "$fresh/runtime.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*",
|
|
};
|