import { OpenAPIHono } from '@hono/zod-openapi';
import { AuthContext } from '@d8d/shared-types';
import loginRoute from './login.route.mt';
import registerRoute from './register.route.mt';
import miniLoginRoute from './mini-login.route.mt';
import meRoute from './me.route.mt';
import updateMeRoute from './update-me.route.mt';
import logoutRoute from './logout.route.mt';
import ssoVerifyRoute from './sso-verify.route.mt';
import phoneDecryptRoute from './phone-decrypt.route.mt';

// 创建统一的路由应用
const authRoutes = new OpenAPIHono<AuthContext>()
  .route('/', loginRoute)
  .route('/', registerRoute)
  .route('/', miniLoginRoute)
  .route('/', meRoute)
  .route('/', updateMeRoute)
  .route('/', logoutRoute)
  .route('/', ssoVerifyRoute)
  .route('/', phoneDecryptRoute);

export { authRoutes };
export default authRoutes;