feat(web): places page (#6669)

Add a place overview page, like the "People" page.
This adds the same functionality as available on mobile.
This commit is contained in:
Emanuel Bennici
2024-01-26 19:11:54 +01:00
committed by GitHub
parent 8aef92affc
commit 77f11e3ae5
4 changed files with 74 additions and 1 deletions
+15
View File
@@ -0,0 +1,15 @@
import { authenticate } from '$lib/utils/auth';
import { api } from '@api';
import type { PageLoad } from './$types';
export const load = (async () => {
await authenticate();
const { data: items } = await api.searchApi.getExploreData();
return {
items,
meta: {
title: 'Places',
},
};
}) satisfies PageLoad;