elk/server/api/pageview.ts

8 lines
121 B
TypeScript
Raw Normal View History

2022-11-13 05:34:43 +00:00
const startAt = Date.now()
let count = 0
export default defineEventHandler(() => ({
pageview: count++,
startAt,
}))