stats.ts 753 B

123456789101112131415161718192021222324252627282930313233343536
  1. export default defineEventHandler((event) => {
  2. /* Set daily active users (DAU). */
  3. // FIXME FOR DEV PURPOSES ONLY
  4. const dau = 888
  5. /* Set # of CashFusion transactions. */
  6. // FIXME FOR DEV PURPOSES ONLY
  7. const players = {
  8. last_24h: 0,
  9. last_30d: 0,
  10. total: 0,
  11. }
  12. /* Set monthly active users (MAU). */
  13. // FIXME FOR DEV PURPOSES ONLY
  14. const mau = 13370
  15. /* Set # of CashShuffle transactions. */
  16. // FIXME FOR DEV PURPOSES ONLY
  17. const plays = {
  18. last_24h: 1337,
  19. last_30d: 30000,
  20. total: 1000000,
  21. }
  22. /* Build statistics. */
  23. const stats = {
  24. dau,
  25. players,
  26. mau,
  27. plays,
  28. }
  29. /* Return statistics. */
  30. return stats
  31. })