import { Router } from 'express';
import { listAdmins, createAdmin, removeAdmin } from '../controllers/adminController.js';
import { requireAuth } from '../middleware/auth.js';

const router = Router();

router.use(requireAuth);

router.get('/', listAdmins);
router.post('/', createAdmin);
router.delete('/:id', removeAdmin);

export default router;
