Tower Http 0.5 #443
-
Hi everyone, I started using tower-http 0.5 with Axum (0.6) and I do have now problem with compatibility. The code I have: let app = Router::new()
.route("/", get(routes::homepage::render_homepage))
.route("/vendors", get(routes::vendor::vendor_index))
.route("/vendors/new", post(routes::vendor::vendor_new))
.route("/vendors/new", get(routes::vendor::vendor_new))
.nest_service("/dist", ServeDir::new("dist/")); and the error message is on the
|
Beta Was this translation helpful? Give feedback.
Answered by
davidbarsky
Nov 25, 2023
Replies: 1 comment
-
axum hasn’t updated to tower-http 0.5 yet, it is still on 0.4. I’d use tower-http 0.4. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
oneslash
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
axum hasn’t updated to tower-http 0.5 yet, it is still on 0.4. I’d use tower-http 0.4.