//! Agent 配置模板管理模块 pub mod types; pub mod service; pub mod handlers; use axum::routing::{delete, get, post}; use crate::state::AppState; /// Agent 模板管理路由 (需要认证) pub fn routes() -> axum::Router { axum::Router::new() .route("/api/v1/agent-templates", get(handlers::list_templates).post(handlers::create_template)) .route("/api/v1/agent-templates/available", get(handlers::list_available)) .route("/api/v1/agent-templates/:id", get(handlers::get_template)) .route("/api/v1/agent-templates/:id", post(handlers::update_template)) .route("/api/v1/agent-templates/:id", delete(handlers::archive_template)) .route("/api/v1/agent-templates/:id/full", get(handlers::get_full_template)) }