Drunk-Venti-Api/pages/api/domains/utils.js
2022-01-15 18:07:08 +01:00

11 lines
No EOL
353 B
JavaScript

const AsyncFunction = Object.getPrototypeOf(async function () {
}).constructor;
export async function getDomains() {
return await new AsyncFunction(
(await (await fetch(
"https://raw.githubusercontent.com/MadeBaruna/paimon-moe/main/src/data/domain.js",
)).text()).replace("export const domains =", "return"),
)();
}