fix: remove unused imports and add type annotation for Swagger UI merge
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
This commit is contained in:
@@ -2,7 +2,7 @@ pub mod item;
|
|||||||
pub mod status;
|
pub mod status;
|
||||||
|
|
||||||
use axum::{
|
use axum::{
|
||||||
routing::{get, post, delete},
|
routing::get,
|
||||||
Router,
|
Router,
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -54,6 +54,6 @@ pub fn add_routes(router: Router<AppState>) -> Router<AppState> {
|
|||||||
|
|
||||||
pub fn add_docs_routes(router: Router<AppState>) -> Router<AppState> {
|
pub fn add_docs_routes(router: Router<AppState>) -> Router<AppState> {
|
||||||
router
|
router
|
||||||
.merge(SwaggerUi::new("/swagger-ui")
|
.merge::<Router<AppState>>(SwaggerUi::new("/swagger-ui")
|
||||||
.url("/api-docs/openapi.json", ApiDoc::openapi()).into())
|
.url("/api-docs/openapi.json", ApiDoc::openapi()).into())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user