mirror of
https://github.com/wassname/talk.git
synced 2026-06-28 04:55:55 +08:00
9 lines
173 B
JavaScript
9 lines
173 B
JavaScript
const Context = require('../graph/context');
|
|
|
|
// Attach a new context to the request.
|
|
module.exports = (req, res, next) => {
|
|
req.context = new Context(req);
|
|
|
|
next();
|
|
};
|