mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 02:37:05 +02:00
fix: assert ads.txt
This commit is contained in:
1 parent
8e26413628
commit
7af06d2120
2 files changed
+5
-1
No files matched your search
Vendored
+1
@@ -108,6 +108,7 @@
|
||||
"NEGATIVEX",
|
||||
"NEGATIVEY",
|
||||
"NEGATIVEZ",
|
||||
"NITROPAY",
|
||||
"nivo",
|
||||
"nmatname",
|
||||
"noout",
|
||||
|
||||
@@ -1,10 +1,13 @@
|
||||
import { assertSecret } from '@blitzkit/core';
|
||||
import type { APIContext } from 'astro';
|
||||
|
||||
export const prerender = false;
|
||||
|
||||
export async function GET({}: APIContext) {
|
||||
const response = await fetch(
|
||||
`https://api.nitropay.com/v1/ads-${import.meta.env.PUBLIC_NITROPAY_ID}.txt`,
|
||||
`https://api.nitropay.com/v1/ads-${assertSecret(
|
||||
import.meta.env.PUBLIC_NITROPAY_ID,
|
||||
)}.txt`,
|
||||
);
|
||||
const text = await response.text();
|
||||
const date = new Date();
|
||||
|
||||
Reference in new issue
Block a user