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

10 lines
227 B
JavaScript
Raw Normal View History

2023-08-29 04:32:25 +00:00
import cookieUniversal from 'cookie-universal'
export default ({ req, res }, inject) => {
const options = {
"alias": "cookies",
"parseJSON": true
}
inject(options.alias, cookieUniversal(req, res, options.parseJSON))
}