mirror of
https://github.com/Akif9748/akf-forum.git
synced 2024-11-30 06:30:40 +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();
|
||
|
}
|