glhcp/server/public/pc/.nuxt/cookie-universal-nuxt.js

10 lines
227 B
JavaScript

import cookieUniversal from 'cookie-universal'
export default ({ req, res }, inject) => {
const options = {
"alias": "cookies",
"parseJSON": true
}
inject(options.alias, cookieUniversal(req, res, options.parseJSON))
}