Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/danielroe/roe.dev. This is the code and content for my personal website, built in Nuxt. roe.dev
Something went wrong. Try again.
TypeScript
12345678910import { invalidatePublicReads, requireAdminAirspace } from '../../utils/airspace'import { collections } from '#shared/collections'
export default defineEventHandler(async event => { const airspace = await requireAdminAirspace(event) const result = await airspace.location.put(await readBody(event)) invalidatePublicReads(collections.location.nsid) return result})