import { OpenAPIHono } from '@hono/zod-openapi';
import { AuthContext } from '@d8d/shared-types';
import disabledPersonCustomRoutes from './disabled-person-custom.routes';
import { disabledPersonCrudRoutes } from './disabled-person-crud.routes';
import aggregatedRoutes from './aggregated.routes';

// 创建路由实例 - 聚合自定义路由、CRUD路由和聚合路由
const disabledPersonRoutes = new OpenAPIHono<AuthContext>()
  .route('/', disabledPersonCustomRoutes)
  .route('/', disabledPersonCrudRoutes)
  .route('/', aggregatedRoutes);

export { disabledPersonRoutes };
export default disabledPersonRoutes;