refactor: update unused variable names

This commit is contained in:
2026-03-13 14:28:46 +01:00
parent 65a55300a1
commit 9bb90607b6

View File

@@ -4,16 +4,16 @@ import PostController from '../controllers/Post.controller.js';
import authenticateToken from '../middlewares/authentication.js';
/* GET home page. */
router.get('/', async function(req, res, next) {
router.get('/', async function(_, res) {
const posts = await PostController.getAll();
res.render('index', { title: 'Path to glory', posts: posts });
});
router.get('/conclave', authenticateToken, async function(req, res, next) {
router.get('/conclave', authenticateToken, async function(_, res) {
res.render('conclave');
});
router.post('/conclave/new', authenticateToken, async function(req, res, next) {
router.post('/conclave/new', authenticateToken, async function(req, res) {
console.log(req.body);
await PostController.create(req.body.title, req.body.content);
res.redirect('/conclave');