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 } from '../../../../shared/platform/runtime'
import { siteManagement, siteManagementBody } from '../../utils/site-management'
export default definePlatformHandler(async (event) => {
const { userId, store } = await siteManagement(event, true)
const body = await siteManagementBody(event)
return {
site: await store.create(userId, {
name: body.name,
slug: body.slug,
requestId: body.requestId,
}),
}
})