webapp/src/pages/authors.astro
2022-11-13 12:25:31 +03:00

16 lines
375 B
Plaintext

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