diff --git a/slingshot/Cargo.toml b/slingshot/Cargo.toml index 0e0cdfa..3e9a8dc 100644 --- a/slingshot/Cargo.toml +++ b/slingshot/Cargo.toml @@ -18,7 +18,7 @@ log = "0.4.27" metrics = "0.24.2" metrics-exporter-prometheus = { version = "0.17.1", features = ["http-listener"] } poem = { version = "3.1.12", features = ["acme"] } -poem-openapi = { version = "5.1.16", features = ["scalar"] } +poem-openapi = { version = "5.1.16", features = ["scalar", "stoplight-elements"] } reqwest = { version = "0.12.22", features = ["json"] } rustls = "0.23.31" serde = { version = "1.0.219", features = ["derive"] } diff --git a/slingshot/src/server.rs b/slingshot/src/server.rs index 595d364..952e545 100644 --- a/slingshot/src/server.rs +++ b/slingshot/src/server.rs @@ -566,6 +566,7 @@ pub async fn serve( let mut app = Route::new() .nest("/", api_service.scalar()) + .nest("/se", api_service.stoplight_elements()) .nest("/openapi.json", api_service.spec_endpoint()) .nest("/xrpc/", api_service);