Files
xiaoxia-saas/apps/api
API文档维护Agent 7545a5ccdc
Tests / test (pull_request) Failing after 1m3s
Tests / lint (pull_request) Failing after 1m2s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
fix: 确保生产CORS始终包含saas.xiaoxiajianji.com
之前的修复只在CORS_ORIGINS为空时才添加默认域名,
但生产环境通过环境变量设置了CORS_ORIGINS_RAW,
导致saas子域仍然不在允许列表中。

现在无论CORS_ORIGINS_RAW如何配置,都会确保包含
xiaoxiajianji.com和saas.xiaoxiajianji.com。
2026-06-28 21:56:21 +08:00
..
2026-06-15 15:17:40 +08:00
2026-06-15 15:17:40 +08:00
2026-06-15 15:17:40 +08:00

xiaoxia-saas API

结构

  • app/core/:配置与基础能力
  • app/api/:路由组织
  • app/schemas/:请求响应模型
  • app/dependencies.py:依赖注入入口
  • main.pyFastAPI 启动入口

当前可用接口

  • GET /api/health
  • GET /api/projects?workspace_id=...
  • POST /api/projects