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:
@@ -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;
|
||||
Reference in New Issue
Block a user