From 603e8127f9a2d65d10918ec8fea306b14da20afb Mon Sep 17 00:00:00 2001 From: Louis Vallat Date: Sun, 17 Oct 2021 10:17:34 +0200 Subject: [PATCH] Added string concatenation to only have to set the base URI for lychee instance Signed-off-by: Louis Vallat --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 5b0f996..5052719 100644 --- a/src/main.rs +++ b/src/main.rs @@ -11,7 +11,7 @@ async fn main() -> Result<(), Box> { let client = Client::builder().build::<_, hyper::Body>(https); let req = Request::builder() .method(Method::POST) - .uri(dotenv::var("LYCHEE_ENDPOINT").unwrap()) + .uri(dotenv::var("LYCHEE_ENDPOINT").unwrap() + "api/Session::init") .body(Body::empty()) .expect("error"); let res = client.request(req).await?; @@ -24,3 +24,4 @@ async fn main() -> Result<(), Box> { Ok(()) } +