blob: 3b85f4cff3853f1be24dce013fe7daa3028c88b6 (
plain) (
tree)
|
|
import { WorldSort, type WorldFilterInput } from '$gql/graphql';
import { parseFilter, parsePaginationData, parseSortData } from '$lib/Navigation';
export const trailingSlash = 'always';
export function load({ url }: { url: URL; params: Record<string, string> }) {
return {
sort: parseSortData(url.searchParams, WorldSort.Name),
filter: parseFilter<WorldFilterInput>(url.searchParams),
pagination: parsePaginationData(url.searchParams)
};
}
|