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

4 lines
81 B
TypeScript
Raw Normal View History

2022-03-08 18:03:21 +00:00
let counter = 0
export default defineEventHandler(() => ({ count: counter++ }))