fix: an error occurred when requesting the http doc api (#984)

This commit is contained in:
fys
2023-02-13 19:17:27 +08:00
committed by GitHub
parent c1a9f84c7f
commit 7fe417e740

View File

@@ -417,7 +417,7 @@ impl HttpServer {
script_handler: self.script_handler.clone(),
})
.finish_api(&mut api)
.layer(Extension(Arc::new(api)));
.layer(Extension(api));
let mut router = Router::new().nest(&format!("/{HTTP_API_VERSION}"), sql_router);