diff options
Diffstat (limited to 'components/Posts/PostList/parentMixin.js')
-rw-r--r-- | components/Posts/PostList/parentMixin.js | 9 |
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() + } + } +} |