import { OpenAPIHono } from '@hono/zod-openapi';
import { AuthContext } from '@d8d/shared-types';
import companyCustomRoutes from './company-custom.routes';
import { companyCrudRoutes } from './company-crud.routes';

// 创建路由实例 - 聚合自定义路由和CRUD路由
const companyRoutes = new OpenAPIHono<AuthContext>()
  .route('/', companyCustomRoutes)
  .route('/', companyCrudRoutes);

export { companyRoutes };
export default companyRoutes;