Skip to content

Instantly share code, notes, and snippets.

@fatihturan
Created October 18, 2018 08:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fatihturan/91c1396ff2dc769be7b4f170f05cfee9 to your computer and use it in GitHub Desktop.
Save fatihturan/91c1396ff2dc769be7b4f170f05cfee9 to your computer and use it in GitHub Desktop.
var Book = require('../models/book');
exports.index = function(req, res) {
res.send('NOT IMPLEMENTED: Site Home Page');
};
// Display list of all books.
exports.book_list = function(req, res) {
res.send('NOT IMPLEMENTED: Book list');
};
// Display detail page for a specific book.
exports.book_detail = function(req, res) {
res.send('NOT IMPLEMENTED: Book detail: ' + req.params.id);
};
// Display book create form on GET.
exports.book_create_get = function(req, res) {
res.send('NOT IMPLEMENTED: Book create GET');
};
// Handle book create on POST.
exports.book_create_post = function(req, res) {
res.send('NOT IMPLEMENTED: Book create POST');
};
// Display book delete form on GET.
exports.book_delete_get = function(req, res) {
res.send('NOT IMPLEMENTED: Book delete GET');
};
// Handle book delete on POST.
exports.book_delete_post = function(req, res) {
res.send('NOT IMPLEMENTED: Book delete POST');
};
// Display book update form on GET.
exports.book_update_get = function(req, res) {
res.send('NOT IMPLEMENTED: Book update GET');
};
// Handle book update on POST.
exports.book_update_post = function(req, res) {
res.send('NOT IMPLEMENTED: Book update POST');
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment