Adding books microservice for GE 8.6
This commit is contained in:
13
books/routes/authors.js
Normal file
13
books/routes/authors.js
Normal file
@@ -0,0 +1,13 @@
|
||||
const express = require('express');
|
||||
|
||||
const router = express.Router();
|
||||
|
||||
const authors = require('../data/authors');
|
||||
|
||||
|
||||
/* GET users listing. */
|
||||
router.get('/', (req, res) => {
|
||||
res.json(authors);
|
||||
});
|
||||
|
||||
module.exports = router;
|
||||
Reference in New Issue
Block a user