Skip to content

Commit

Permalink
fix(Backend): 🛂 fix Cors and update tonic
Browse files Browse the repository at this point in the history
  • Loading branch information
Eason0729 committed Feb 9, 2024
1 parent 9c31737 commit 16ff382
Show file tree
Hide file tree
Showing 14 changed files with 165 additions and 82 deletions.
142 changes: 108 additions & 34 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,20 @@ serde = "1.0.163"
tokio = "1.34.0"
tracing = "0.1.40"
tracing-subscriber = "0.3.17"
tonic-web = "0.10.2"
tonic-web = "0.11.0"
prost-wkt = "0.5"
prost-wkt-types = "0.5"
prost-wkt-build = "0.5"

[workspace.dependencies.tonic-build]
version = "0.10.2"
version = "0.11.0"
default-features = false

[workspace.dependencies.chrono]
version = "0.4.26"

[workspace.dependencies.tonic]
version = "0.10.2"
version = "0.11.0"
default-features = false

[workspace.dependencies.sea-orm]
Expand Down
7 changes: 6 additions & 1 deletion backend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ opentelemetry-otlp = { version = "0.14.0", features = ["metrics"] }
migration = { path = "./migration", optional = true }
sea-orm-cli = { version = "0.12.12", optional = true }
governor = "0.6.0"
http = "^0.2"

[dependencies.tower-http]
version = "^0.4"
features = ["cors","trace"]

[dependencies.sea-query]
version = "0.30.4"
Expand Down Expand Up @@ -92,7 +97,7 @@ workspace = true
features = ["derive"]

[dependencies.tonic]
version = "0.10.2"
workspace = true
features = ["transport", "channel", "codegen", "prost", "tls"]

[dependencies.spin]
Expand Down
Loading

0 comments on commit 16ff382

Please sign in to comment.