const express = require('express'); const router = express.Router(); const { getConfig, updateConfig, testConnection } = require('../controllers/payfastController'); const { protect, admin } = require('../middleware/authMiddleware'); router.get('/config', protect, admin, getConfig); router.put('/config', protect, admin, updateConfig); router.post('/test', protect, admin, testConnection); module.exports = router;