17 lines
347 B
TypeScript
17 lines
347 B
TypeScript
|
|
// @ts-nocheck
|
||
|
|
// biome-ignore-file: Worker entry point with dynamic imports
|
||
|
|
/* eslint-disable */
|
||
|
|
|
||
|
|
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 });
|
||
|
|
},
|
||
|
|
};
|