Created
December 18, 2019 00:00
-
-
Save paulobunga/588aebf925a18105222d3f624c0e41c7 to your computer and use it in GitHub Desktop.
Boilerplate code for product controller
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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