11 lines
258 B
TypeScript
11 lines
258 B
TypeScript
|
import { Handlers } from "$fresh/server.ts";
|
||
|
|
||
|
export const handler: Handlers = {
|
||
|
GET(_: Request) {
|
||
|
const uuid = crypto.randomUUID();
|
||
|
return new Response(JSON.stringify(uuid), {
|
||
|
headers: { "Content-Type": "application/json" },
|
||
|
});
|
||
|
},
|
||
|
};
|