feat(health): 新增公开文章列表端点 /public/articles 供小程序访客首页使用

访客首页文章列表调用 /health/articles 需要 JWT 认证导致 401。
新增 GET /public/articles?tenant_id=xxx 端点,强制只返回已发布文章,
无需认证。小程序访客首页改用此公开端点。
This commit is contained in:
iven
2026-05-10 19:14:31 +08:00
parent edb4b6557d
commit fca0b5a78f
4 changed files with 32 additions and 2 deletions

View File

@@ -157,6 +157,10 @@ impl HealthModule {
"/public/banners",
axum::routing::get(banner_handler::list_public_banners),
)
.route(
"/public/articles",
axum::routing::get(article_handler::list_public_articles),
)
}
/// FHIR R4 只读路由(使用 OAuth client_credentials 认证)