From 2b9cdeb3299d55ce53d8363929daf9d2f08672ca Mon Sep 17 00:00:00 2001 From: mehbark Date: Sun, 24 Sep 2023 07:31:25 -0400 Subject: [PATCH] add serverside-randirect helper --- html/common.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/html/common.tsx b/html/common.tsx index fe79c4a..705f86e 100644 --- a/html/common.tsx +++ b/html/common.tsx @@ -216,6 +216,9 @@ export const static_url = (res: string) => `https://static.pyrope.net/${res}`; export const randirect = (...urls: string[]) => `https://pyrope.net/randirect#${urls.join("::")}`; +export const serverside_randirect = (...urls: string[]) => + `https://pyrope.net/serverside-randirect?${urls.join("::")}`; + // could do some [T, ...T[]] shenanigans for totality but meh // kinda bad name // unhappy with the randomness so i'm going way overkill lol