Passed
Push — main ( 67fbf9...b28dcd )
by LCS
02:38
created

index.js ➔ setRoutes   A

Complexity

Conditions 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
1
const express = require('express');
0 ignored issues
show
Unused Code introduced by
The constant express seems to be never used. Consider removing it.
Loading history...
2
const IndexController = require('../controllers/index');
3
4
function setRoutes(app) {
5
    const indexController = new IndexController();
6
7
    app.get('/', indexController.getIndex.bind(indexController));
8
}
9
10
module.exports = setRoutes;