elk/server/api/pageview.ts
2022-11-13 13:34:43 +08:00

8 lines
121 B
TypeScript

const startAt = Date.now()
let count = 0
export default defineEventHandler(() => ({
pageview: count++,
startAt,
}))