Nuxt/test/fixtures/basic/server/api/preview.ts
2024-03-06 17:14:15 +00:00

9 lines
165 B
TypeScript

const apiKeyName = 'apiKey'
const apiKey = 'hehe'
export default defineEventHandler((event) => {
return {
hehe: getQuery(event)[apiKeyName] === apiKey
}
})