mirror of
https://github.com/Akif9748/akf-forum.git
synced 2024-11-26 21:30:42 +03:00
10 lines
259 B
JavaScript
10 lines
259 B
JavaScript
|
const { User } = require("../../classes/index");
|
||
|
|
||
|
|
||
|
module.exports = (req, res) => {
|
||
|
|
||
|
if (!req.session.loggedin) return res.redirect('/login');
|
||
|
const user = new User().getId(req.session.userid)
|
||
|
res.render("openThread", { user })
|
||
|
|
||
|
}
|