import express from "express";
import { createTransaction, getAllTransactions, getTransactionById, updateTransaction, deleteTransaction } from "../controllers/StocktransactionController.js";


const router = express.Router();


router.post("/", createTransaction);
router.get("/",getAllTransactions);
router.get("/:id", getTransactionById);
router.put("/:id", updateTransaction);
router.delete("/:id", deleteTransaction);

export default router;
