diff --git a/functions/[[path]].js b/functions/[[path]].js index 8e88591..322bdb6 100644 --- a/functions/[[path]].js +++ b/functions/[[path]].js @@ -7,7 +7,7 @@ export async function onRequest({request, env, next}){ const u=new URL(request.url) // Handle POST request to create a link (API call) - if(u.pathname==='/'&&request.method==='POST'){ + if(u.pathname==='/api/create'&&request.method==='POST'){ try{ const{url:t}=await request.json(); new URL(t);