about summary refs log tree commit diff
path: root/components/Posts/PostList/parentMixin.js
diff options
context:
space:
mode:
Diffstat (limited to 'components/Posts/PostList/parentMixin.js')
-rw-r--r--components/Posts/PostList/parentMixin.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/components/Posts/PostList/parentMixin.js b/components/Posts/PostList/parentMixin.js
new file mode 100644
index 0000000..e5b06ed
--- /dev/null
+++ b/components/Posts/PostList/parentMixin.js
@@ -0,0 +1,9 @@
+import { getPosts } from './index'
+
+export default {
+  async asyncData() {
+    return {
+      posts: await getPosts()
+    }
+  }
+}