diff --git a/Cargo.lock b/Cargo.lock index a3ceb5c..7f052d4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1764,7 +1764,7 @@ dependencies = [ [[package]] name = "k-core" -version = "0.1.11" +version = "0.1.12" dependencies = [ "anyhow", "async-nats", diff --git a/Cargo.toml b/Cargo.toml index 4da2e48..e588b48 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "k-core" -version = "0.1.11" +version = "0.1.12" edition = "2024" [features] @@ -11,7 +11,12 @@ postgres = ["db-sqlx", "sqlx/postgres"] sqlite = ["db-sqlx", "sqlx/sqlite"] ai = ["dep:fastembed", "dep:qdrant-client"] broker = [] -broker-nats = ["broker", "dep:async-nats", "dep:futures-util", "dep:futures-core"] +broker-nats = [ + "broker", + "dep:async-nats", + "dep:futures-util", + "dep:futures-core", +] http = ["dep:axum", "dep:tower", "dep:tower-http", "logging"] [dependencies] @@ -53,7 +58,10 @@ async-nats = { version = "0.45", optional = true } # HTTP axum = { version = "0.8.8", features = ["macros"], optional = true } tower = { version = "0.5.2", optional = true } -tower-http = { version = "0.6.2", features = ["cors", "trace"], optional = true } +tower-http = { version = "0.6.2", features = [ + "cors", + "trace", +], optional = true } futures-util = { version = "0.3", optional = true } futures-core = { version = "0.3", optional = true } diff --git a/src/http/server.rs b/src/http/server.rs index 1d108ef..cc922c1 100644 --- a/src/http/server.rs +++ b/src/http/server.rs @@ -11,6 +11,7 @@ pub fn apply_standard_middleware(app: Router, config: &ServerConfig) -> Router { .allow_methods([ axum::http::Method::GET, axum::http::Method::POST, + axum::http::Method::PUT, axum::http::Method::PATCH, axum::http::Method::DELETE, axum::http::Method::OPTIONS,