added posts

This commit is contained in:
2025-12-10 16:53:18 +00:00
parent 54730cd619
commit ab6c2baa70

View File

@@ -10,8 +10,8 @@ let len = 0;
async function fetchPosts() { async function fetchPosts() {
try { try {
const res = await axios.get("https://adam-french.co.uk/api/posts"); const res = await axios.get("/api/posts");
posts.value = res.data; posts = res.data;
fetched.value = true; fetched.value = true;
post.value = posts[0]; post.value = posts[0];
len = posts.length; len = posts.length;