app/routes/authors/index.js   A
last analyzed

Complexity

Total Complexity 0
Complexity/F 0

Size

Lines of Code 16
Function Count 0

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 0
wmc 0
c 1
b 0
f 0
nc 1
mnd 0
bc 0
fnc 0
dl 0
loc 16
rs 10
bpm 0
cpm 0
noi 0
1
'use strict';
2
3
const router = require('express').Router();
4
const author = require('./author');
5
6
router.route('/')
7
    .get(author.getAuthors)
8
    .post(author.postAuthor);
9
10
router.route('/:id')
11
    .get(author.getAuthor)
12
    .delete(author.deleteAuthor)
13
    .put(author.updateAuthor);
14
15
16
module.exports = router;