xtablo-source/ui/worker/index.ts
Arthur Belleville 75328fbe96
Format codebase
2025-10-10 08:50:56 +02:00

12 lines
279 B
TypeScript

export default {
fetch(request) {
const url = new URL(request.url);
if (url.pathname.startsWith("/api/")) {
return Response.json({
name: "Cloudflare",
});
}
return new Response(null, { status: 404 });
},
} satisfies ExportedHandler<Env>;