webapp/src/pages/feed/index.astro

17 lines
396 B
Plaintext
Raw Normal View History

2022-09-09 11:53:35 +00:00
---
2022-09-22 09:37:49 +00:00
import { Root } from '../../components/Root'
2022-09-09 11:53:35 +00:00
import Zine from '../../layouts/zine.astro'
import { apiClient } from '../../utils/apiClient'
2022-09-23 18:27:05 +00:00
import { initRouter } from '../../stores/router'
const { pathname, search } = Astro.url
initRouter(pathname, search)
2022-09-22 09:37:49 +00:00
const articles = await apiClient.getRecentArticles({ limit: 50 })
2022-09-09 11:53:35 +00:00
---
<Zine>
2022-10-05 15:11:14 +00:00
<Root feedArticles={articles} client:load />
2022-09-09 11:53:35 +00:00
</Zine>