Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
docs: set cookie event
Browse files Browse the repository at this point in the history
  • Loading branch information
Ash Go authored Jun 10, 2022
1 parent eedd30e commit e91b088
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/content/3.api/1.composables/use-cookie.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export default (req, res) => {
let counter = useCookie(req, 'counter') || 0

// Increase counter cookie by 1
setCookie(res, 'counter', ++counter)
setCookie(req, 'counter', ++counter)

// Send JSON response
return { counter }
Expand Down

0 comments on commit e91b088

Please sign in to comment.