From dde320a170f69a423488b2c39e20290d6f179507 Mon Sep 17 00:00:00 2001 From: piro-hiroki Date: Tue, 19 Mar 2024 09:00:40 +0900 Subject: [PATCH] Delete old app-ads.txt file and add new implementation --- public/app-ads.txt | 1 - src/app-ads.txt .ts | 10 ++++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) delete mode 100644 public/app-ads.txt create mode 100644 src/app-ads.txt .ts diff --git a/public/app-ads.txt b/public/app-ads.txt deleted file mode 100644 index ad47f86..0000000 --- a/public/app-ads.txt +++ /dev/null @@ -1 +0,0 @@ -google.com, pub-3050915388015871, DIRECT, f08c47fec0942fa0 \ No newline at end of file diff --git a/src/app-ads.txt .ts b/src/app-ads.txt .ts new file mode 100644 index 0000000..b2615fb --- /dev/null +++ b/src/app-ads.txt .ts @@ -0,0 +1,10 @@ +import type { APIRoute } from "astro"; + +const rads = ` +google.com, pub-3050915388015871, DIRECT, f08c47fec0942fa0 +`.trim(); + +export const GET: APIRoute = () => + new Response(rads, { + headers: { "Content-Type": "text/plain" }, + });