webapp/src/pages/authors.astro
2022-10-05 17:11:14 +02:00

16 lines
362 B
Plaintext

---
import { Root } from '../components/Root'
import Zine from '../layouts/zine.astro'
import { apiClient } from '../utils/apiClient'
import { initRouter } from '../stores/router'
const authors = await apiClient.getAllAuthors()
const { pathname, search } = Astro.url
initRouter(pathname, search)
---
<Zine>
<Root allAuthors={authors} client:load />
</Zine>