mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-19 16:02:14 +00:00
17 lines
469 B
Rust
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
|
|
}
|