feat(health): 新增公开文章列表端点 /public/articles 供小程序访客首页使用
访客首页文章列表调用 /health/articles 需要 JWT 认证导致 401。 新增 GET /public/articles?tenant_id=xxx 端点,强制只返回已发布文章, 无需认证。小程序访客首页改用此公开端点。
This commit is contained in:
@@ -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 认证)
|
||||
|
||||
Reference in New Issue
Block a user