nitro icon indicating copy to clipboard operation
nitro copied to clipboard

How to update defineCachedEventHandler

Open max5432112345 opened this issue 1 year ago • 0 comments

Environment

export default defineCachedEventHandler(async () => {
  await new Promise(resolve => setTimeout(resolve, 1000))
  return `Response generated at ${new Date().toISOString()} (took 1 second)`
}) // here to pass to options integrity (changed time of row for example), but for that is need to get id from params for example and call to bd outside of the event handler?

Reproduction


Describe the bug


Additional context

No response

Logs

No response

max5432112345 avatar Aug 18 '22 07:08 max5432112345