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
at ci/nightly
12345678910export default defineEventHandler(async event => { if (getMethod(event) === 'OPTIONS') return null assertMethod(event, 'POST') const { body } = await readBody(event) if (!body) throw createError({ statusCode: 422 })
await sendEmail('Hi there', body) return null})