Files
immich/web/src/routes/(user)/places/+page.ts
T
Mert f392fe7702 fix(server): "view all" for cities only showing 12 cities (#8035)
* view all cities

* increase limit

* rename endpoint

* optimize query

* remove pagination

* update sql

* linting

* revert sort by count in explore page for now

* fix query

* fix

* update sql

* move to search, add partner support

* update sql

* pr feedback

* euphemism

* parameters as separate variable

* move comment

* update sql

* linting
2024-03-20 03:23:57 +00:00

16 lines
331 B
TypeScript

import { authenticate } from '$lib/utils/auth';
import { getAssetsByCity } from '@immich/sdk';
import type { PageLoad } from './$types';
export const load = (async () => {
await authenticate();
const items = await getAssetsByCity();
return {
items,
meta: {
title: 'Places',
},
};
}) satisfies PageLoad;