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.

520 B
Raw Blame
import { billingWorkspaces } from '../../../../../packages/platform/src/billing'
import {
  definePlatformHandler,
  platformDatabase,
} from '../../../../shared/platform/runtime'
import { requirePlatformSession } from '../../../../shared/platform/context'
export default definePlatformHandler(async (event) => {
  const user = await requirePlatformSession(
      event,
      useRuntimeConfig(event).platform,
    ),
    db = platformDatabase(event)
  return { workspaces: await billingWorkspaces(db, user.userId) }
})