Total Complexity | 0 |
Complexity/F | 0 |
Lines of Code | 16 |
Function Count | 0 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 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; |