diff --git a/src/worker.ts b/src/worker.ts index 0282a1c..0a82cc2 100644 --- a/src/worker.ts +++ b/src/worker.ts @@ -189,6 +189,9 @@ export default { } return handleContact(request, env); } + if (url.pathname.includes("/api/")) { + return jsonResponse({ ok: false, error: "Not found." }, 404); + } if (env.ASSETS?.fetch) { return env.ASSETS.fetch(request); }