blob: 88acadeb05c5cd931e6d7b1b236d83aebe713559 (
plain) (
tree)
|
|
import { ArchiveSort, type ArchiveFilterInput } 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, ArchiveSort.Path),
filter: parseFilter<ArchiveFilterInput>(url.searchParams),
pagination: parsePaginationData(url.searchParams, 24)
};
}
|