Co-authored-by: Marvin Hagemeister <marvin@deno.com>
8 lines
176 B
TypeScript
8 lines
176 B
TypeScript
import { Handlers } from "$fresh/server.ts";
|
|
|
|
export const handler: Handlers<unknown, { data: string }> = {
|
|
GET(_req, ctx) {
|
|
return new Response(ctx.state.data);
|
|
},
|
|
};
|