import type { Routes } from "@nestjs/core";
import { AuthModule } from "@bff/modules/auth/auth.module";
import { UsersModule } from "@bff/modules/users/users.module";
import { MappingsModule } from "@bff/modules/id-mappings/mappings.module";
import { CatalogModule } from "@bff/modules/catalog/catalog.module";
import { OrdersModule } from "@bff/modules/orders/orders.module";
import { InvoicesModule } from "@bff/modules/invoices/invoices.module";
import { SubscriptionsModule } from "@bff/modules/subscriptions/subscriptions.module";
import { CurrencyModule } from "@bff/modules/currency/currency.module";
import { SecurityModule } from "@bff/core/security/security.module";
import { SupportModule } from "@bff/modules/support/support.module";

export const apiRoutes: Routes = [
  {
    path: "api",
    children: [
      { path: "", module: AuthModule },
      { path: "", module: UsersModule },
      { path: "", module: MappingsModule },
      { path: "", module: CatalogModule },
      { path: "", module: OrdersModule },
      { path: "", module: InvoicesModule },
      { path: "", module: SubscriptionsModule },
      { path: "", module: CurrencyModule },
      { path: "", module: SupportModule },
      { path: "", module: SecurityModule },
    ],
  },
];
