refactor: use defineEventHandler for server api (#26)

This commit is contained in:
Johann Schopplich authored and GitHub committed 2022-04-19 10:52:47 +08:00
1 parent 1a274da6c4
commit d99e15b100
1 file changed
+2 -2
+2 -2
View File
@@ -1,7 +1,7 @@
const startAt = Date.now() const startAt = Date.now()
let count = 0 let count = 0
export default () => ({ export default defineEventHandler(() => ({
pageview: count++, pageview: count++,
startAt, startAt,
}) }))