restructured - added data and inventory routes/controllers

This commit is contained in:
2024-03-21 13:35:47 -05:00
parent 31939aaffe
commit ab2b011580
5 changed files with 19 additions and 19 deletions

12
api/routes/dataRoutes.js Normal file
View File

@@ -0,0 +1,12 @@
// routes/dataRoutes.js
import express from "express";
import { itemLookup } from "../controllers/dataController.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("/item-lookup", itemLookup);
// You can add more data-related routes here in the future
export default router;

View File

@@ -1,10 +0,0 @@
// routes/itemLookup.js
import express from "express";
import itemLookup from "../controllers/itemLookup.js";
const router = express.Router();
// Use the itemLookup controller for the POST request to '/item-lookup'
router.post("/item-lookup", itemLookup);
export default router;