finish taller4

This commit is contained in:
2021-11-10 16:58:48 -03:00
parent e01fca027d
commit aa1848691e
8 changed files with 2924 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
'use strict'
var express = require('express');
var bookController = require('../controllers/bookController');
var api = express.Router();
api.get('/book', bookController.list_books);
api.get('/book/:id', bookController.show_book);
api.post('/book', bookController.new_book);
api.put('/book/:id', bookController.modify_book);
api.delete('/book/:id', bookController.delete_book);
module.exports = api;