import { OpenAPIHono } from '@hono/zod-openapi';
import { AuthContext } from '@d8d/shared-types';
import orderCustomRoutes from './order-custom.routes';
import { orderCrudRoutes } from './order-crud.routes';

/**
 * 订单管理模块路由
 * 聚合自定义路由和CRUD路由
 */
const orderRoutes = new OpenAPIHono<AuthContext>()
  .route('/', orderCustomRoutes)
  .route('/', orderCrudRoutes);

export { orderRoutes };
export default orderRoutes;