Files
Genarrative/server-rs/crates/api-server/src/modules/frontend_runtime_config.rs
T
kdletters 2a98b60830 改为运行时控制画板 Agent 入口
新增前端运行时配置接口下发画板 Agent 开关

将画板 Agent 入口改为读取后端运行时配置

把开关变量改为 GENARRATIVE_ENABLE_IMAGE_EDITOR_AGENT_SIDEBAR

补充前后端测试和生产环境变量文档
2026-07-07 14:04:08 +08:00

11 lines
289 B
Rust

use axum::{Router, routing::get};
use crate::{frontend_runtime_config::get_frontend_runtime_config, state::AppState};
pub fn router(_state: AppState) -> Router<AppState> {
Router::new().route(
"/api/runtime/frontend-config",
get(get_frontend_runtime_config),
)
}