mirror of
https://github.com/tiennm99/exchange-rate-export.git
synced 2026-05-14 06:58:44 +00:00
14 lines
251 B
JavaScript
14 lines
251 B
JavaScript
export default {
|
|
fetch(request, env) {
|
|
const url = new URL(request.url);
|
|
|
|
if (url.pathname.startsWith("/api/")) {
|
|
return Response.json({
|
|
name: "Cloudflare",
|
|
});
|
|
}
|
|
|
|
return new Response(null, { status: 404 });
|
|
},
|
|
}
|