11 lines
236 B
TypeScript
11 lines
236 B
TypeScript
|
import { define } from "../../utils.ts";
|
||
|
|
||
|
export const handler = define.handlers({
|
||
|
GET(ctx) {
|
||
|
const name = ctx.params.name;
|
||
|
return new Response(
|
||
|
`Hello, ${name.charAt(0).toUpperCase() + name.slice(1)}!`,
|
||
|
);
|
||
|
},
|
||
|
});
|