// engines/pagination.engine.js

exports.paginate = (flights, page = 1, limit = 20) => {
    const startIndex = (page - 1) * limit;
    const endIndex = page * limit;

    return flights.slice(startIndex, endIndex);
};
