import express from "express";
import { sendMessage, getMessages } from "../controllers/message.controller.js";

const router = express.Router();

// POST /api/messages → Save a message
router.post("/", sendMessage);

// GET /api/messages → Get all messages (optional)
router.get("/", getMessages);

export default router;
