akf-forum/routes/get/createThread.js

10 lines
259 B
JavaScript
Raw Normal View History

2022-02-26 21:12:54 +03:00
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 })
}