/**
 * Express app with IRU marketplace routes only (public + admin mount) for HTTP tests.
 */

import express, { Express } from 'express';
import iruMarketplacePublicRoutes from '@/integration/api-gateway/routes/iru-marketplace-public.routes';
import { errorHandler } from '@/integration/api-gateway/middleware/error.middleware';

export function createIruMarketplaceHttpTestApp(): Express {
  const app = express();
  app.use(express.json());
  app.use('/api/v1/iru/marketplace', iruMarketplacePublicRoutes);
  app.use(errorHandler);
  return app;
}
