mirror of
https://github.com/Akif9748/akf-forum.git
synced 2024-11-26 21:30:42 +03:00
6 lines
163 B
JavaScript
6 lines
163 B
JavaScript
|
const { User } = require("../classes");
|
||
|
|
||
|
module.exports = async (req, res, next) => {
|
||
|
req.user = await new User().getById(req.session.userid);
|
||
|
next();
|
||
|
}
|