13 lines
424 B
JavaScript
13 lines
424 B
JavaScript
// 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;
|