Merged in fix/sitemap-api-route (pull request #1813)
Fix/sitemap - moved sitemap api route to api/web * fix:sitemap - moved api route to api/web * Moved files Approved-by: Joakim Jäderberg
This commit is contained in:
@@ -10,7 +10,7 @@ export default async (request: Request, _context: Context) => {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const url = new URL(
|
const url = new URL(
|
||||||
"/api/sitemap",
|
"/api/web/sitemap",
|
||||||
PUBLIC_URL || "https://www.scandichotels.com"
|
PUBLIC_URL || "https://www.scandichotels.com"
|
||||||
)
|
)
|
||||||
const response = await fetch(url, {
|
const response = await fetch(url, {
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ export default async (request: Request, _context: Context) => {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const url = new URL(
|
const url = new URL(
|
||||||
"/api/sitemap",
|
"/api/web/sitemap",
|
||||||
PUBLIC_URL || "https://www.scandichotels.com"
|
PUBLIC_URL || "https://www.scandichotels.com"
|
||||||
)
|
)
|
||||||
const response = await fetch(url, {
|
const response = await fetch(url, {
|
||||||
|
|||||||
Reference in New Issue
Block a user