fix: resolve compilation errors in API routes and diff pipe setup

Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
This commit is contained in:
Andrew Phillips
2025-08-13 11:19:05 -03:00
parent 9f6ab94992
commit baf92a8902
2 changed files with 19 additions and 26 deletions

View File

@@ -16,11 +16,11 @@ use utoipa_swagger_ui::SwaggerUi;
status::handle_status,
item::handle_list_items,
item::handle_post_item,
item::handle_delete_item,
item::handle_get_item_latest,
item::handle_get_item_latest_meta,
item::handle_get_item_latest_content,
item::handle_get_item,
item::handle_delete_item,
item::handle_get_item_meta,
item::handle_get_item_content,
),
@@ -47,9 +47,9 @@ pub fn add_routes(router: Router<AppState>) -> Router<AppState> {
.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/: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/content", get(item::handle_get_item_content))
.route("/api/item/:item_id", get(item::handle_get_item).delete(item::handle_delete_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))
}
pub fn add_docs_routes(router: Router<AppState>) -> Router<AppState> {