From b3a21d1f7ce6c8a7aa763e9ccfdf551b21eb5ee0 Mon Sep 17 00:00:00 2001 From: Andrew Phillips Date: Mon, 25 Aug 2025 18:09:20 -0300 Subject: [PATCH] refactor: remove item/latest and item/{item_id} routes and handlers Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) --- src/modes/server/api/mod.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/modes/server/api/mod.rs b/src/modes/server/api/mod.rs index 301fe91..43bbca0 100644 --- a/src/modes/server/api/mod.rs +++ b/src/modes/server/api/mod.rs @@ -25,10 +25,8 @@ use utoipa_swagger_ui::SwaggerUi; status::handle_status, item::handle_list_items, item::handle_post_item, - item::handle_get_item_latest, item::handle_get_item_latest_meta, item::handle_get_item_latest_content, - item::handle_get_item, item::handle_get_item_meta, item::handle_get_item_content, mcp::handle_mcp_sse, @@ -63,10 +61,8 @@ pub fn add_routes(router: Router) -> Router { // Item endpoints .route("/api/item/", get(item::handle_list_items).post(item::handle_post_item)) - .route("/api/item/latest", get(item::handle_get_item_latest)) .route("/api/item/latest/meta", get(item::handle_get_item_latest_meta)) .route("/api/item/latest/content", get(item::handle_get_item_latest_content)) - .route("/api/item/{item_id}", get(item::handle_get_item)) .route("/api/item/{item_id}/meta", get(item::handle_get_item_meta)) .route("/api/item/{item_id}/content", get(item::handle_get_item_content))