Nuxt/examples/async-data-setup/server/api/count.js

4 lines
53 B
JavaScript

let ctr = 0
export default () => ({ count: ++ctr })