15 lines
282 B
JavaScript
15 lines
282 B
JavaScript
'use strict';
|
|
|
|
var utils = require('../utils.cjs');
|
|
|
|
const getCookieFactory = utils.apiFactory()((_, ctx) => {
|
|
/**
|
|
* Get the current cookie string
|
|
*/
|
|
return function getCookie() {
|
|
return ctx.cookie;
|
|
};
|
|
});
|
|
|
|
exports.getCookieFactory = getCookieFactory;
|