mirror of
https://github.com/4ev-link/4ev.link.git
synced 2026-01-14 08:38:39 +00:00
Fix: Exclude 'takedown' page from slug routing
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
export async function onRequestGet({ request, params, env, next, waitUntil }) {
|
export async function onRequestGet({ request, params, env, next, waitUntil }) {
|
||||||
if (['abuse', 'admin', 'api', 'dash', 'acceptable-use'].includes(params.slug)) return next();
|
if (['abuse', 'admin', 'api', 'dash', 'acceptable-use', 'takedown'].includes(params.slug)) return next();
|
||||||
try {
|
try {
|
||||||
let dest = await env.KV_EV.get(params.slug);
|
let dest = await env.KV_EV.get(params.slug);
|
||||||
if (dest?.startsWith('✺')) {
|
if (dest?.startsWith('✺')) {
|
||||||
|
|||||||
Reference in New Issue
Block a user