Jenderal92

Untitled

Jul 22nd, 2022
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. //category.controller.js will have following methods :
  2.  
  3. const Category = require('../models/category.model.js');
  4.  
  5. // Create and Save a new Category
  6. exports.create = (req, res) => {
  7.  
  8. };
  9.  
  10. // Retrieve and return all categories from the database.
  11. exports.findAll = (req, res) => {
  12.  
  13. };
  14.  
  15. // Find a single category with a id
  16. exports.findOne = (req, res) => {
  17.  
  18. };
  19.  
  20. // Update a category identified by the id in the request
  21. exports.update = (req, res) => {
  22.  
  23. };
  24.  
  25. // Delete a category with the specified categoryId in the request
  26. exports.delete = (req, res) => {
  27.  
  28. };
Advertisement
Add Comment
Please, Sign In to add comment