9 lines
235 B
TypeScript
9 lines
235 B
TypeScript
export function GET(_req: Request, meta: Record<string, any>): Response {
|
|
const input = decodeURIComponent(meta.params.input ?? '');
|
|
return new Response(input, {
|
|
status: 200,
|
|
headers: {
|
|
'Content-Type': 'text/plain'
|
|
}
|
|
});
|
|
}
|