Rename server module
This commit is contained in:
parent
dc4bb7f567
commit
12b077b7be
6 changed files with 4 additions and 4 deletions
|
@ -52,5 +52,5 @@ name = "doc-server"
|
|||
path = "src/bin/doc_server.rs"
|
||||
|
||||
[[bin]]
|
||||
name = "axum-docs"
|
||||
name = "http-sse-server"
|
||||
path = "src/bin/axum_docs.rs"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use anyhow::Result;
|
||||
use std::net::SocketAddr;
|
||||
use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt};
|
||||
use cratedocs_mcp::server::axum_docs::App;
|
||||
use cratedocs_mcp::server::http_sse_server::App;
|
||||
|
||||
const BIND_ADDRESS: &str = "127.0.0.1:8080";
|
||||
|
||||
|
|
|
@ -95,7 +95,7 @@ async fn run_http_server(address: String, debug: bool) -> Result<()> {
|
|||
tracing::info!("Access the Rust Documentation Server at http://{}/sse", addr);
|
||||
|
||||
// Create app and run server
|
||||
let app = cratedocs_mcp::server::axum_docs::App::new();
|
||||
let app = cratedocs_mcp::server::http_sse_server::App::new();
|
||||
axum::serve(listener, app.router()).await?;
|
||||
|
||||
Ok(())
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
pub mod axum_docs;
|
||||
pub mod http_sse_server;
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests;
|
Loading…
Add table
Add a link
Reference in a new issue