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

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

export default app;