Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.
TypeScript albumsexif-extractiongeocodinglive-photomotion-photophoto-galleryphoto-sharingwebgl-viewer
import {
definePlatformHandler,
platformDatabase,
} from '../../../../shared/platform/runtime'
import { requirePlatformSession } from '../../../../shared/platform/context'
import { createD1SiteCatalog } from '../../../../../packages/platform/src/index'
export default definePlatformHandler(async (event) => {
const session = await requirePlatformSession(
event,
useRuntimeConfig(event).platform,
)
return {
sites: await createD1SiteCatalog(platformDatabase(event)).list(
session.userId,
),
}
})