Update posts retrieval script to use the new cms.lewisdale.co.uk endpoint

This commit is contained in:
Lewis Dale 2023-03-11 23:03:46 +00:00
parent b2cb60c5c5
commit 21e275bcb5

View File

@ -40,7 +40,7 @@ class PostCache {
params.set("modified_after", this.last_read_date.toISOString()); 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: { headers: {
"Authorization": `Basic ${auth}` "Authorization": `Basic ${auth}`
} }
@ -66,7 +66,7 @@ class PostCache {
params.set("modified_after", this.last_read_date.toISOString()); 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: { headers: {
"Authorization": `Basic ${auth}` "Authorization": `Basic ${auth}`
} }