This allows users to control the `preact` version independently of fresh itself.
15 lines
343 B
TypeScript
15 lines
343 B
TypeScript
/** @jsx h */
|
|
import { h } from "preact";
|
|
import { RouteConfig } from "$fresh/runtime.ts";
|
|
import { HandlerContext } from "../../../server.ts";
|
|
|
|
export const handler = {
|
|
GET(_req: Request, { params }: HandlerContext) {
|
|
return new Response(params.path);
|
|
},
|
|
};
|
|
|
|
export const config: RouteConfig = {
|
|
routeOverride: "/params/:path*",
|
|
};
|