refactor: update unused variable names
This commit is contained in:
@@ -4,16 +4,16 @@ import PostController from '../controllers/Post.controller.js';
|
|||||||
import authenticateToken from '../middlewares/authentication.js';
|
import authenticateToken from '../middlewares/authentication.js';
|
||||||
|
|
||||||
/* GET home page. */
|
/* GET home page. */
|
||||||
router.get('/', async function(req, res, next) {
|
router.get('/', async function(_, res) {
|
||||||
const posts = await PostController.getAll();
|
const posts = await PostController.getAll();
|
||||||
res.render('index', { title: 'Path to glory', posts: posts });
|
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');
|
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);
|
console.log(req.body);
|
||||||
await PostController.create(req.body.title, req.body.content);
|
await PostController.create(req.body.title, req.body.content);
|
||||||
res.redirect('/conclave');
|
res.redirect('/conclave');
|
||||||
|
|||||||
Reference in New Issue
Block a user