Files
sweet/tests/fixture/routes/layeredMdw/nesting/[tenant]/[environment]/[id].tsx
T

14 lines
347 B
TypeScript

import { Handlers, PageProps } from "$fresh/server.ts";
export const handler: Handlers = {
async GET(_req: Request, ctx) {
const order = ctx.state.middlewareNestingOrder as string;
const resp = await ctx.render(order + "4");
return resp;
},
};
export default function Page(props: PageProps) {
return <div>{props.data}</div>;
}