/**
 * Minimal Express app with gateway routes only (for HTTP integration tests).
 */

import express, { Express } from 'express';
import gatewayRoutes from '@/core/gateway/routes/gateway.routes';
import { errorHandler } from '@/integration/api-gateway/middleware/error.middleware';

export function createGatewayHttpTestApp(): Express {
  const app = express();
  app.use(express.json());
  app.use('/api/v1/gateway', gatewayRoutes);
  app.use(errorHandler);
  return app;
}
