fix: update module imports to reflect moved files in server mode

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:16 -03:00
parent 5150e2f478
commit 592e0586b4

View File

@@ -16,15 +16,13 @@ use tower_http::trace::TraceLayer;
use crate::Args;
mod common;
mod status;
mod items;
mod content;
mod api;
mod docs;
pub use common::{ServerConfig, AppState, logging_middleware};
use status::handle_status;
use items::{handle_list_items, handle_get_item, handle_put_item, handle_delete_item};
use content::{handle_get_content_latest, handle_get_content};
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::status::handle_status;
use docs::{handle_openapi, handle_swagger_ui};
pub fn mode_server(
@@ -67,7 +65,7 @@ async fn run_server(
let app = Router::new()
.route("/status", get(handle_status))
.route("/item/", get(handle_list_items).put(handle_put_item))
.route("/item/", get(handle_list_items).put(handle_post_item))
.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))