"use strict";

/**
 * airCancelSegmentRoute.js
 *
 * Route: POST /api/air/cancel-segment
 *
 * Request Body:
 * {
 *   "AirReservationLocator": "34OZ0J",              // required — from frontend
 *   "segmentKey": "y33O8YSqWDKALiRBeAAAAA=="        // optional — specific segment to cancel
 * }
 */

const express                    = require("express");
const router                     = express.Router();
const cancelAirSegmentController = require("../controllers/airCancelSegmentController");

// ─────────────────────────────────────────────────────────────────────────────
// POST /api/air/cancel-segment
// ─────────────────────────────────────────────────────────────────────────────
router.post("/cancel-segment", cancelAirSegmentController);

module.exports = router;