mykevin81 /
Personal-Website
| 1 | var express = require('express'); |
||
| 2 | var api = require('./projects'); |
||
| 3 | var router = express.Router(); |
||
| 4 | |||
| 5 | /* GET home page. */ |
||
| 6 | router.get('/', function (req, res, next) { |
||
|
0 ignored issues
–
show
|
|||
| 7 | res.render('index'); |
||
| 8 | }); |
||
| 9 | |||
| 10 | router.get('/api', api.showAllProjects); |
||
| 11 | |||
| 12 | module.exports = router; |
||
| 13 |
This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.