From 21e275bcb5fe728200dc95a008699766cc104c15 Mon Sep 17 00:00:00 2001 From: Lewis Dale Date: Sat, 11 Mar 2023 23:03:46 +0000 Subject: [PATCH] Update posts retrieval script to use the new cms.lewisdale.co.uk endpoint --- src/_data/posts.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/_data/posts.js b/src/_data/posts.js index ed57fca..6ee62c8 100644 --- a/src/_data/posts.js +++ b/src/_data/posts.js @@ -40,7 +40,7 @@ class PostCache { params.set("modified_after", this.last_read_date.toISOString()); } - const response = await fetch(`https://lewisdale.dev/wp-json/wp/v2/comments?${params.toString()}`, { + const response = await fetch(`https://cms.lewisdale.dev/wp-json/wp/v2/comments?${params.toString()}`, { headers: { "Authorization": `Basic ${auth}` } @@ -66,7 +66,7 @@ class PostCache { params.set("modified_after", this.last_read_date.toISOString()); } - const response = await fetch(`https://lewisdale.dev/wp-json/wp/v2/posts?${params.toString()}`, { + const response = await fetch(`https://cms.lewisdale.dev/wp-json/wp/v2/posts?${params.toString()}`, { headers: { "Authorization": `Basic ${auth}` }