Files
kycnotme/web/src/pages/api/[...catchAll].ts

14 lines
304 B
TypeScript
Raw Normal View History

2025-05-31 09:21:32 +00:00
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,
}
)
}