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