Skip to content

Commit

Permalink
feat: add test cache api
Browse files Browse the repository at this point in the history
  • Loading branch information
kleinpetr committed Jul 8, 2024
1 parent 8afc1e5 commit 35f3418
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/api/test-cache.get.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default defineCachedEventHandler(() => {
return Math.random()
}, { maxAge: 7 * 24 * 60 * 60 * 1000 }) // 7 days

0 comments on commit 35f3418

Please sign in to comment.