diff --git a/src/utils/getAllPosts.js b/src/utils/getPosts.js similarity index 93% rename from src/utils/getAllPosts.js rename to src/utils/getPosts.js index 7753c38..4b076af 100644 --- a/src/utils/getAllPosts.js +++ b/src/utils/getPosts.js @@ -18,7 +18,7 @@ const load = async function () { let _posts; -export const getAllPosts = async () => { +export const getPosts = async () => { _posts = _posts || load(); return await _posts;