Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const express = require("express");
- const Warehouse = require("../models/warehouse");
- const router = express.Router();
- router
- .route("/")
- .get((req, res) => {
- Warehouse.where(req.query)
- .fetchAll()
- .then(warehouses => {
- res.status(200).json(warehouses);
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement