fix: make generate_status_info public and remove unused imports
Co-authored-by: aider (openai/andrew/openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
This commit is contained in:
@@ -7,7 +7,6 @@ use clap::Command;
|
||||
use log::{debug, info, warn};
|
||||
use std::net::SocketAddr;
|
||||
use std::path::PathBuf;
|
||||
use std::str::FromStr;
|
||||
use std::sync::Arc;
|
||||
use tokio::sync::Mutex;
|
||||
use tower_http::cors::CorsLayer;
|
||||
@@ -22,7 +21,7 @@ mod items;
|
||||
mod content;
|
||||
mod docs;
|
||||
|
||||
pub use common::{ServerConfig, AppState, ApiResponse, logging_middleware};
|
||||
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};
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
use anyhow::Result;
|
||||
use axum::http::HeaderMap;
|
||||
use log::{info, warn};
|
||||
use log::info;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::collections::HashMap;
|
||||
use std::path::PathBuf;
|
||||
|
||||
@@ -53,7 +53,7 @@ pub struct MetaPluginInfo {
|
||||
pub args: String,
|
||||
}
|
||||
|
||||
fn generate_status_info(
|
||||
pub fn generate_status_info(
|
||||
data_path: PathBuf,
|
||||
db_path: PathBuf,
|
||||
enabled_meta_plugins: &Vec<MetaPluginType>,
|
||||
|
||||
Reference in New Issue
Block a user