feat: bump version to 0.1.12 and update allowed HTTP methods in middleware

This commit is contained in:
2026-03-11 19:25:18 +01:00
parent 0ea9aa7870
commit f176223063
3 changed files with 13 additions and 4 deletions

2
Cargo.lock generated
View File

@@ -1764,7 +1764,7 @@ dependencies = [
[[package]]
name = "k-core"
version = "0.1.11"
version = "0.1.12"
dependencies = [
"anyhow",
"async-nats",

View File

@@ -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 }

View File

@@ -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,