const express = require('express');
const router = express.Router();
const DomainController = require('../controllers/DomainController');

// Public routes
router.get('/available', DomainController.getAvailableDomains);

// Admin routes
router.get('/', DomainController.getAllDomains);
router.post('/', DomainController.createDomain);
router.put('/:id', DomainController.updateDomain);
router.delete('/:id', DomainController.deleteDomain);

module.exports = router; 