From 609090887c1097fae91177bcbfe41dfa4bc57e00 Mon Sep 17 00:00:00 2001 From: multipleof4 Date: Sat, 11 Oct 2025 05:39:05 -0700 Subject: [PATCH] Refactor: Add admin path to reserved list --- functions/[slug].js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/[slug].js b/functions/[slug].js index b881276..23d5311 100644 --- a/functions/[slug].js +++ b/functions/[slug].js @@ -1,5 +1,5 @@ export async function onRequestGet({ request, params, env, next }) { - if (['dash', 'api', 'acceptable-use', 'abuse'].includes(params.slug)) return next(); + if (['abuse', 'admin', 'api', 'dash', 'acceptable-use'].includes(params.slug)) return next(); try { const dest = await env.KV_EV.get(params.slug); const url = dest ? `https://${dest}` : new URL('/', request.url).href;