fix: resolve module naming conflict and router method availability

Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
This commit is contained in:
Andrew Phillips
2025-08-12 15:02:22 -03:00
parent 25b70492bc
commit 20340be9ac

View File

@@ -7,7 +7,6 @@ use crate::modes::server::common::AppState;
use crate::modes::server::api::{ use crate::modes::server::api::{
item, status item, status
}; };
use crate::modes::server::docs;
pub fn add_routes(router: Router<AppState>) -> Router<AppState> { pub fn add_routes(router: Router<AppState>) -> Router<AppState> {
router router
@@ -22,8 +21,4 @@ pub fn add_routes(router: Router<AppState>) -> Router<AppState> {
.route("/api/item/:id", get(item::handle_get_item).delete(item::handle_delete_item)) .route("/api/item/:id", get(item::handle_get_item).delete(item::handle_delete_item))
.route("/api/item/:id/meta", get(item::handle_get_item_meta)) .route("/api/item/:id/meta", get(item::handle_get_item_meta))
.route("/api/item/:id/content", get(item::handle_get_content)) .route("/api/item/:id/content", get(item::handle_get_content))
// Documentation endpoints
.route("/openapi.json", get(docs::handle_openapi))
.route("/swagger/", get(docs::handle_swagger_ui))
} }