cookie-universal-nuxt.js 227 B

123456789
  1. import cookieUniversal from 'cookie-universal'
  2. export default ({ req, res }, inject) => {
  3. const options = {
  4. "alias": "cookies",
  5. "parseJSON": true
  6. }
  7. inject(options.alias, cookieUniversal(req, res, options.parseJSON))
  8. }