add serverside-randirect helper

This commit is contained in:
mehbark 2023-09-24 07:31:25 -04:00
parent 6fc163e2cc
commit 2b9cdeb329

View file

@ -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