Use the real endpoint path for the hyper request.
This commit is contained in:
parent
13c9daf21b
commit
b6064d1e01
@ -91,7 +91,7 @@ impl ToTokens for Api {
|
|||||||
fn try_from(request: Request) -> Result<Self, Self::Error> {
|
fn try_from(request: Request) -> Result<Self, Self::Error> {
|
||||||
let mut hyper_request = ::hyper::Request::new(
|
let mut hyper_request = ::hyper::Request::new(
|
||||||
::hyper::#method,
|
::hyper::#method,
|
||||||
"/".parse().expect("failed to parse request URI"),
|
#path.parse().expect("failed to parse request URI"),
|
||||||
);
|
);
|
||||||
|
|
||||||
#add_body_to_request
|
#add_body_to_request
|
||||||
|
Loading…
x
Reference in New Issue
Block a user