mirror of
https://github.com/Akif9748/akf-forum.git
synced 2024-12-23 08:09:08 +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();
|
|
}
|