Skip to content

Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.

529 B
Raw Blame
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,
    ),
  }
})