Skip to content

Commit 4c5de94

Browse files
committed
Fix verbose openapi output
1 parent 1dc373f commit 4c5de94

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

firefly-server/src/server.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use aide::{
22
axum::{routing::get, ApiRouter, IntoApiResponse},
33
openapi::OpenApi,
4+
NoApi,
45
};
56
use anyhow::Result;
67
use axum::{response::Html, Extension, Json};
@@ -10,7 +11,7 @@ use tokio::{net::TcpListener, signal};
1011
use crate::config::ApiConfig;
1112

1213
async fn serve_api(Extension(api): Extension<OpenApi>) -> impl IntoApiResponse {
13-
Json(api)
14+
NoApi(Json(api))
1415
}
1516

1617
pub async fn serve(config: &ApiConfig, router: ApiRouter) -> Result<()> {

0 commit comments

Comments
 (0)