feat(config): ThemeResp 增加品牌字段 + 公开品牌信息端点
- ThemeResp 新增 brand_name/brand_slogan/brand_features/brand_copyright 字段 - default_theme 提供品牌默认值 - 新增 PublicBrandResp 和 GET /api/v1/public/brand 公开端点(无需认证) - ConfigModule 增加 public_routes 方法 - 更新测试覆盖品牌字段
This commit is contained in:
@@ -102,6 +102,14 @@ impl ConfigModule {
|
||||
put(language_handler::update_language),
|
||||
)
|
||||
}
|
||||
|
||||
/// Build public (unauthenticated) routes for the config module.
|
||||
pub fn public_routes<S>() -> Router<S>
|
||||
where
|
||||
S: Clone + Send + Sync + 'static,
|
||||
{
|
||||
Router::new().route("/public/brand", get(theme_handler::get_public_brand))
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for ConfigModule {
|
||||
|
||||
Reference in New Issue
Block a user