Release 202505310921
This commit is contained in:
13
web/src/pages/api/[...catchAll].ts
Normal file
13
web/src/pages/api/[...catchAll].ts
Normal file
@@ -0,0 +1,13 @@
|
||||
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,
|
||||
}
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user