Use the real endpoint path for the hyper request.

This commit is contained in:
Jimmy Cuadra 2017-05-13 23:09:50 -07:00
parent 13c9daf21b
commit b6064d1e01

View File

@ -91,7 +91,7 @@ impl ToTokens for Api {
fn try_from(request: Request) -> Result<Self, Self::Error> {
let mut hyper_request = ::hyper::Request::new(
::hyper::#method,
"/".parse().expect("failed to parse request URI"),
#path.parse().expect("failed to parse request URI"),
);
#add_body_to_request