diff --git a/projects/ContractSphere/backend/contract-sphere-backend/routes/contractRoutes.js b/projects/ContractSphere/backend/contract-sphere-backend/routes/contractRoutes.js new file mode 100644 index 000000000..abb14e024 --- /dev/null +++ b/projects/ContractSphere/backend/contract-sphere-backend/routes/contractRoutes.js @@ -0,0 +1,12 @@ +import express from 'express'; +import { createContract, getContracts, getContract, updateContract, deleteContract } from '../services/contractService'; + +const router = express.Router(); + +router.post('/', createContract); +router.get('/', getContracts); +router.get('/:id', getContract); +router.patch('/:id', updateContract); +router.delete('/:id', deleteContract); + +export default router;