API Debug Console

Vercel + Supabase 后端接口调试页。所有请求走同源 /api/*/v1/* 路由。

Health

GET/api/health

查看运行时配置(dataMode、aiProvider 等)。

尚未请求。

AI Chat

POST/api/ai/chat
尚未请求。

OpenAI Compatible

POST/v1/chat/completions
POST/api/openai/v1/chat/completions
尚未请求。

Comments CRUD

GET/api/comments
POST/api/comments
GET/api/comments/:id
PATCH/api/comments/:id
DELETE/api/comments/:id

生产环境需 DATA_MODE=supabase,数据持久化到 Supabase。

尚未请求。

Auth

GET/api/auth/mode
POST/api/auth/login
GET/api/auth/me

本地账号需先用 npm run seed:auth-user 注入(注册未开放)。也可用 AUTH_ADMIN_* 管理员账号。

尚未请求。

OAuth

GET/api/auth/oauth/providers
GET/api/auth/oauth/:provider/start

配置 AUTH_GITHUB_* / AUTH_GOOGLE_* 后由本 API 托管;未配置则回退 auth.acongm.com

尚未请求。

Site Config

GET/api/config/site
尚未请求。

Upload

POST/api/upload
GET/api/upload/:key

Vercel 上 FILE_MODE=memory 为临时存储,仅适合演示。

尚未请求。

Proxy

POST/api/proxy/:provider

需在服务端配置 PROXY_ALLOWLIST,例如 github=https://api.github.com

尚未请求。