itemLookUp complete and addItem endpoint

This commit is contained in:
2024-03-21 15:18:06 -05:00
parent ab2b011580
commit 191164f4cc
7 changed files with 162 additions and 4 deletions

View File

@@ -0,0 +1,12 @@
// routes/dataRoutes.js
import express from "express";
import { addItem } from "../controllers/inventoryController.js"; // Adjust the import path according to your project structure
const router = express.Router();
// Use the itemLookup function from dataController for the GET request to '/item-lookup'
router.get("/add-item", addItem);
// You can add more data-related routes here in the future
export default router;