fix: resolve module ambiguity and fix import paths in server docs

Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
This commit is contained in:
Andrew Phillips
2025-08-12 14:40:58 -03:00
parent 592e0586b4
commit afdecb6c51
3 changed files with 7 additions and 33 deletions

View File

@@ -21,7 +21,7 @@ mod docs;
pub use common::{ServerConfig, AppState, logging_middleware};
use api::item::{handle_list_items, handle_get_item, handle_post_item, handle_delete_item};
use api::item::{handle_get_content_latest, handle_get_content};
use api::item::{handle_get_content_latest, handle_get_content, handle_get_content_latest_raw, handle_get_content_raw};
use api::status::handle_status;
use docs::{handle_openapi, handle_swagger_ui};
@@ -69,6 +69,8 @@ async fn run_server(
.route("/item/:id", get(handle_get_item).delete(handle_delete_item))
.route("/content", get(handle_get_content_latest))
.route("/content/:id", get(handle_get_content))
.route("/content-raw", get(handle_get_content_latest_raw))
.route("/content-raw/:id", get(handle_get_content_raw))
.route("/openapi.json", get(handle_openapi))
.route("/swagger/", get(handle_swagger_ui))
.layer(axum::middleware::from_fn(logging_middleware))