Revert: PR #20 changes

This commit is contained in:
Llewellyn D'souza
2022-02-02 10:38:14 +05:30
parent 03c40bb0d0
commit 7c2e7b3c19
2 changed files with 0 additions and 13 deletions

View File

@@ -2,14 +2,6 @@ const Warehouse = require("../models/Warehouse");
const mongoose = require("mongoose");
module.exports = {
getAllWarehouses: async (req, res, next) => {
try {
const warehouses = await Warehouse.find();
res.send({ success: true, data: warehouses });
} catch (error) {
next(error);
}
},
/**
* Gets the warehouse data by `id`
*/

View File

@@ -7,11 +7,6 @@ const controller = require("./warehouse.controller");
*/
router.get("/all", controller.getAllWarehouse);
/**
* @route /warehouse/get-all
*/
router.get("/get-all", controller.getAllWarehouses);
/**
* @route /warehouse/:id
*/