added posts
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user