op.kira.art)/api/cached/* 的只读代理。源:src/hono/op/index.ts。
通用约定
- i18n:读
Accept-Language头(默认en-US),按localeFieldMap映射到 CMS 的_xx后缀字段,取不到回退_en。支持 12 语言(en/zh_CN/zh_TW/ja/ko/de/es/fr/it/ms/pt/ru) - fail-open:CMS 上游失败(非 200 / fetch 抛错)时返回空响应,只
appLog.warn(不 error —— dependency-error-rate alert 已在 CLIENT span 上盯 kira-cms 5xx,重复 error 会让 ERROR rate 误报服务故障) - CMS base URL 来自
CMS_URL(默认https://op.kira.art)
GET /op/announcement
读全站公告。上游GET {CMS_URL}/api/cached/announcements。
响应
visible = false 或上游失败时全部字段为空(announcement/url/title/description/imageUrl = "",visible: false)。
GET /op/homecards/v2
读首页卡片 V2。上游GET {CMS_URL}/api/cached/home-cards-v2。
响应
音频已下线:存量 CMS 卡片若仍为
audio,运行时整卡过滤掉;inputMedias 里的 audio 项也过滤掉。失败回退 { cards: [], featuredCardIds: [] }。GET /op/trending
读 Trending 列表。上游GET {CMS_URL}/api/cached/trending。
响应
{ items: [] }。
源
src/hono/op/index.ts