import { OpenAPIHono } from '@hono/zod-openapi';
import { AuthContext } from '@d8d/shared-types';
import platformCustomRoutes from './platform-custom.routes';
import { platformCrudRoutes } from './platform-crud.routes';

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

export { platformRoutes };
export default platformRoutes;