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