import { OpenAPIHono } from '@hono/zod-openapi';
import { AuthContext } from '@d8d/shared-types';
import salaryCustomRoutes from './salary-custom.routes';
import { salaryCrudRoutes } from './salary-crud.routes';

/**
 * 薪资管理模块路由
 * 聚合自定义路由和CRUD路由
 */
const salaryRoutes = new OpenAPIHono<AuthContext>()
  .route('/', salaryCustomRoutes)
  .route('/', salaryCrudRoutes);

export { salaryRoutes };
export default salaryRoutes;