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 { 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) }
})