From 9237ff111923879daa3ee6884731cb8f8fd92884 Mon Sep 17 00:00:00 2001 From: multipleof4 Date: Fri, 26 Sep 2025 19:55:34 -0700 Subject: [PATCH] Fix: Change API endpoint to /api/create --- functions/[[path]].js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);