Files
windmill/backend/windmill-api/src/resources.rs
T
2026-02-11 06:44:10 +00:00

17 lines
469 B
Rust

#[cfg(feature = "mcp")]
use axum::routing::get;
use axum::Router;
/// Wraps the subcrate's workspaced_service with the mcp_tools route
/// that depends on windmill-api internals.
pub fn workspaced_service() -> Router {
let router = windmill_store::resources::workspaced_service();
#[cfg(feature = "mcp")]
use crate::mcp_tools::get_mcp_tools;
#[cfg(feature = "mcp")]
let router = router.route("/mcp_tools/*path", get(get_mcp_tools));
router
}