import express from 'express';
import { createMetricsRoutes } from './metrics.routes.js';
import { createEventsRouter } from './events.routes.js';

export function createApiRouter(apiKey, apiRevision) {
  const router = express.Router();

  // Mount metrics routes
  router.use('/metrics', createMetricsRoutes(apiKey, apiRevision));

  // Mount events routes
  router.use('/events', createEventsRouter(apiKey, apiRevision));

  return router;
} 