import express from 'express';
import { wrapAsync } from '@/api/http/request';
import * as communications from '@/api/controllers/communications.controller';

const router = express.Router();

router.get('/parent-messages', wrapAsync(communications.listParentMessages));
router.post('/parent-messages', wrapAsync(communications.createParentMessage));
router.get('/events', wrapAsync(communications.listEvents));
router.post('/events', wrapAsync(communications.createEvent));

export default router;
