Cookie parser for fomex
yarn add fomex-cookie
import { baseWebRouter } from 'fomex';
import { PluginCookie } from 'fomex-cookie';
export webRouter = baseWebRouter.global(new PluginCookie());
And then you can get ctx.cookie
when handle routes.
Cookie parser for fomex
yarn add fomex-cookie
import { baseWebRouter } from 'fomex';
import { PluginCookie } from 'fomex-cookie';
export webRouter = baseWebRouter.global(new PluginCookie());
And then you can get ctx.cookie
when handle routes.
npm i fomex-cookie
0
0.0.3
MIT
13.7 kB
10