import { Router } from 'express';
import SupportController from '../controllers/supportController';

const router = Router();
const supportController = new SupportController();

router.post('/tickets', supportController.createTicket.bind(supportController));
router.get('/tickets', supportController.getAllTickets.bind(supportController));
router.get('/tickets/:id', supportController.getTicketById.bind(supportController));
router.put('/tickets/:id', supportController.updateTicket.bind(supportController));
router.delete('/tickets/:id', supportController.deleteTicket.bind(supportController));
router.get('/complaint-categories', supportController.getComplaintCategories.bind(supportController));

export default router;
