Nuxt/test/fixtures/basic/server/api/preview.ts

9 lines
166 B
TypeScript
Raw Permalink Normal View History

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