# API 路由重写规则
# 将 /api/v1/* 请求转发到 api/v1/index.php

RewriteEngine On

# 非静态文件请求转发到 index.php（含 OPTIONS，由 bootstrap.php 处理 CORS 头）
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^v1/(.*)$ v1/index.php [L,QSA]
