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

4 lines
121 B
TypeScript
Raw Permalink Normal View History

export default defineEventHandler(() => {
return new Array(10).fill(0).map(() => Math.round(Math.random() * 10000))
})