Skip to content

Instantly share code, notes, and snippets.

@paulobunga
Created December 18, 2019 00:00
Show Gist options
  • Save paulobunga/588aebf925a18105222d3f624c0e41c7 to your computer and use it in GitHub Desktop.
Save paulobunga/588aebf925a18105222d3f624c0e41c7 to your computer and use it in GitHub Desktop.
Boilerplate code for product controller
const Product = require('./product_model');
module.exports.createProduct = async (req, res, next) => {};
module.exports.viewProducts = async (req, res, next) => {};
module.exports.viewSingleProduct = async (req, res, next) => {};
module.exports.updateProduct = async (req, res, next) => {};
module.exports.deleteProduct = async (req, res, next) => {};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment