Files
PolyMPR/defaults/makeIndex.ts
T
2025-01-21 16:09:36 +01:00

13 lines
367 B
TypeScript

import { FreshContext } from "$fresh/server.ts";
import { State } from "$root/routes/_middleware.ts";
export default function makeIndex(basePath: string) {
return async function Index(
request: Request,
context: FreshContext<State>,
) {
const index = (await import(`${basePath}/partials/index.tsx`)).Index;
return index(request, context);
};
}