routes/index.js   A
last analyzed

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 12
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 0
c 2
b 0
f 0
nc 1
dl 0
loc 12
rs 10
wmc 1
mnd 0
bc 1
fnc 1
bpm 1
cpm 1
noi 1
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
Unused Code introduced by
The parameter next is not used and could be removed.

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.

Loading history...
7
    res.render('index');
8
});
9
10
router.get('/api', api.showAllProjects);
11
12
module.exports = router;
13