UNPKG

348 BJavaScriptView Raw
1/**
2 * @copyright Copyright (c) 2019 Maxim Khorin <maksimovichu@gmail.com>
3 */
4'use strict';
5
6const Base = require('../base/Component');
7
8module.exports = class Cookie extends Base {
9
10 init () {
11 this.module.addHandler('use', cookieParser(this.secret, this.options));
12 }
13};
14
15const cookieParser = require('cookie-parser');
\No newline at end of file