diff --git a/blockchain_integration/pi_network/api/routes/contractRoutes.js b/blockchain_integration/pi_network/api/routes/contractRoutes.js new file mode 100644 index 000000000..7fa3ef2e3 --- /dev/null +++ b/blockchain_integration/pi_network/api/routes/contractRoutes.js @@ -0,0 +1,14 @@ +// api/routes/contractRoutes.js + +const express = require('express'); +const contractController = require('../controllers/contractController'); + +const router = express.Router(); + +// Get contract details +router.get('/:contractAddress', contractController.getContractDetails); + +// Interact with contract (e.g., call a function) +router.post('/:contractAddress/interact', contractController.interactWithContract); + +module.exports = router;