Files
kycnotme/web/src/pages/api/[...catchAll].ts
2025-05-31 09:21:32 +00:00

14 lines
304 B
TypeScript

import type { APIRoute } from 'astro'
export const ALL: APIRoute = (context) => {
console.error('Endpoint not found', { url: context.url.href, method: context.request.method })
return new Response(
JSON.stringify({
error: 'Endpoint not found',
}),
{
status: 404,
}
)
}