feat(backend): add opendal storage for file payload and postgres record for metadata, add CORS layer
This commit is contained in:
@@ -5,11 +5,11 @@ edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
anyhow = "1.0.102"
|
||||
axum = { version = "0.8.9", features = ["tracing"] }
|
||||
axum = { version = "0.8.9", features = ["tracing", "multipart", "macros"] }
|
||||
serde = { version = "1.0.228", features = ["derive"] }
|
||||
serde_json = "1.0.149"
|
||||
tokio = { version = "1.52.1", features = ["full"] }
|
||||
tower-http = { version = "0.6.8", features = ["fs", "trace"] }
|
||||
tokio = { version = "1.52.3", features = ["full"] }
|
||||
tower-http = { version = "0.6.10", features = ["fs", "trace", "cors"] }
|
||||
tower-cookies = "0.11.0"
|
||||
tracing = "0.1.44"
|
||||
tracing-subscriber = { version = "0.3.23", features = ["env-filter"] }
|
||||
@@ -17,6 +17,7 @@ lazy-regex = "3.6.0"
|
||||
sqlx = { version = "0.8", features = ["runtime-tokio-rustls", "postgres", "uuid", "chrono"] }
|
||||
chrono = { version = "0.4.44", features = ["serde"] }
|
||||
dotenvy = "0.15.7"
|
||||
opendal = { version = "0.56.0", features = ["tests", "services-fs"] }
|
||||
|
||||
[dev-dependencies]
|
||||
axum-test = "20.0.0"
|
||||
|
||||
Reference in New Issue
Block a user