proxy+page.server.js
1 // @ts-nocheck 2 /** @param {Parameters<import('./$types').PageServerLoad>[0]} event */ 3 export async function load({ params }) { 4 // Log the attempted access to the catchall route 5 console.log(`Catchall route accessed with path: ${params.catchall}`); 6 7 // Return the catchall path for client-side handling 8 return { 9 catchallPath: params.catchall 10 }; 11 }