const { createApiRateLimiters } = require("./rate-limit");

function apiRateLimiter(options = {}) {
  const [byIp] = createApiRateLimiters(options);
  return byIp;
}

module.exports = {
  apiRateLimiter,
  createApiRateLimiters,
};
