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