mirror of
https://github.com/pesde-pkg/pesde.git
synced 2025-05-04 10:33:47 +01:00
10 lines
283 B
TypeScript
10 lines
283 B
TypeScript
import { fetchRegistryJson, type SearchResponse } from "$lib/registry-api"
|
|
import type { PageLoad } from "./$types"
|
|
|
|
export const load: PageLoad = async ({ fetch }) => {
|
|
const { data: packages } = await fetchRegistryJson<SearchResponse>("search", fetch)
|
|
|
|
return {
|
|
packages,
|
|
}
|
|
}
|