import type { RouteDefinition } from '../../core/router.js';
import {
  bindPhoneRoute,
  logoutRoute,
  meRoute,
  qqLoginRoute,
  sendSmsCodeRoute,
  verifySmsCodeRoute,
  wechatWebLoginRoute,
  wechatMiniappLoginRoute,
} from './routes.js';

export const authRoutes: RouteDefinition[] = [
  ['POST', '/api/auth/sms/send', sendSmsCodeRoute],
  ['POST', '/api/auth/sms/verify', verifySmsCodeRoute],
  ['GET', '/api/auth/me', meRoute],
  ['POST', '/api/auth/logout', logoutRoute],
  ['POST', '/api/auth/phone/bind', bindPhoneRoute],
  ['POST', '/api/auth/oauth/wechat', wechatWebLoginRoute],
  ['POST', '/api/auth/oauth/wechat-miniapp', wechatMiniappLoginRoute],
  ['POST', '/api/auth/oauth/qq', qqLoginRoute],
];
