Skip to content

Commit

Permalink
revert playground
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jun 27, 2023
1 parent b516dad commit 486172e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions playground/routes/index.ts
@@ -1,8 +1,4 @@
// eslint-disable-next-line require-await
export default eventHandler(async (event) => {
const kvStorage = useStorage("data");
const counter = (Number(await kvStorage.getItem("counter")) || 0) + 1;
await kvStorage.setItem("counter", counter);
return {
counter,
};
return {};
});

0 comments on commit 486172e

Please sign in to comment.