From e956e148bc121f039ba03e300082e68705537d6c Mon Sep 17 00:00:00 2001 From: Linus Flood Date: Wed, 16 Apr 2025 06:52:55 +0000 Subject: [PATCH] Merged in fix/sitemap-api-route (pull request #1813) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix/sitemap - moved sitemap api route to api/web * fix:sitemap - moved api route to api/web * Moved files Approved-by: Joakim Jäderberg --- apps/scandic-web/app/api/{ => web}/sitemap/route.ts | 0 apps/scandic-web/app/api/{ => web}/sitemap/sync.ts | 0 apps/scandic-web/app/api/{ => web}/sitemap/telemetry.ts | 0 apps/scandic-web/app/api/{ => web}/sitemap/utils.ts | 0 apps/scandic-web/netlify/functions/sitemap-manual.mts | 2 +- apps/scandic-web/netlify/functions/sitemap.mts | 2 +- 6 files changed, 2 insertions(+), 2 deletions(-) rename apps/scandic-web/app/api/{ => web}/sitemap/route.ts (100%) rename apps/scandic-web/app/api/{ => web}/sitemap/sync.ts (100%) rename apps/scandic-web/app/api/{ => web}/sitemap/telemetry.ts (100%) rename apps/scandic-web/app/api/{ => web}/sitemap/utils.ts (100%) diff --git a/apps/scandic-web/app/api/sitemap/route.ts b/apps/scandic-web/app/api/web/sitemap/route.ts similarity index 100% rename from apps/scandic-web/app/api/sitemap/route.ts rename to apps/scandic-web/app/api/web/sitemap/route.ts diff --git a/apps/scandic-web/app/api/sitemap/sync.ts b/apps/scandic-web/app/api/web/sitemap/sync.ts similarity index 100% rename from apps/scandic-web/app/api/sitemap/sync.ts rename to apps/scandic-web/app/api/web/sitemap/sync.ts diff --git a/apps/scandic-web/app/api/sitemap/telemetry.ts b/apps/scandic-web/app/api/web/sitemap/telemetry.ts similarity index 100% rename from apps/scandic-web/app/api/sitemap/telemetry.ts rename to apps/scandic-web/app/api/web/sitemap/telemetry.ts diff --git a/apps/scandic-web/app/api/sitemap/utils.ts b/apps/scandic-web/app/api/web/sitemap/utils.ts similarity index 100% rename from apps/scandic-web/app/api/sitemap/utils.ts rename to apps/scandic-web/app/api/web/sitemap/utils.ts diff --git a/apps/scandic-web/netlify/functions/sitemap-manual.mts b/apps/scandic-web/netlify/functions/sitemap-manual.mts index 2b2132c65..a6f1ac88f 100644 --- a/apps/scandic-web/netlify/functions/sitemap-manual.mts +++ b/apps/scandic-web/netlify/functions/sitemap-manual.mts @@ -10,7 +10,7 @@ export default async (request: Request, _context: Context) => { try { const url = new URL( - "/api/sitemap", + "/api/web/sitemap", PUBLIC_URL || "https://www.scandichotels.com" ) const response = await fetch(url, { diff --git a/apps/scandic-web/netlify/functions/sitemap.mts b/apps/scandic-web/netlify/functions/sitemap.mts index 05403b21f..4dafdfb7e 100644 --- a/apps/scandic-web/netlify/functions/sitemap.mts +++ b/apps/scandic-web/netlify/functions/sitemap.mts @@ -13,7 +13,7 @@ export default async (request: Request, _context: Context) => { try { const url = new URL( - "/api/sitemap", + "/api/web/sitemap", PUBLIC_URL || "https://www.scandichotels.com" ) const response = await fetch(url, {