import express from 'express';
import { createAnswerHandler, deleteAnswerHandler, getAnswerHandler, getAllAnswersHandler, updateAnswerHandler } from '../controllers/answers.js';

const router = express.Router({ mergeParams: true });

router.get('/', getAllAnswersHandler);

router.post('/', createAnswerHandler);

router.get('/:seqAnswer', getAnswerHandler);

router.delete('/:seqAnswer', deleteAnswerHandler);

router.put('/:seqAnswer', updateAnswerHandler);

export default router;
