repo for angularjs testing training
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

13 lines
487 B

'use strict';
module.exports = function(app) {
var basePath = '/api';
var BookController = require('./controllers/booksController');
// Book Controller Routes
app.get(basePath + '/books', BookController.getBookList);
app.get(basePath + '/book/:id', BookController.getBook);
app.post(basePath + '/book', BookController.addBook);
app.put(basePath + '/book/:id', BookController.updateBook);
app.delete(basePath + '/book/:id', BookController.deleteBook);
};