akf-forum/routes/get/createThread.js
2022-03-13 16:16:46 +03:00

10 lines
No EOL
250 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 })
}