From d9855b5a6643fe298a94bed7bbddd315efa3fa0b Mon Sep 17 00:00:00 2001 From: jk jensen Date: Sun, 30 Jun 2024 14:54:26 -0700 Subject: [PATCH] [bug] make dynamic routes work properly (#49) * make sid optional * [bug] make dynamic routes work properly --------- Co-authored-by: Darren Baldwin <68653294+DarrenBaldwin07@users.noreply.github.com> --- src/clerk.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clerk.rs b/src/clerk.rs index 4d61348..25e0c12 100644 --- a/src/clerk.rs +++ b/src/clerk.rs @@ -123,7 +123,7 @@ impl Clerk { /// Make a GET request with params to the specified Clerk API endpoint pub async fn get_with_params(&self, endpoint: ClerkDynamicGetEndpoint, params: Vec<&str>) -> Result { - let parsed_endpoint = endpoint.to_string(); + let parsed_endpoint = endpoint.as_str(); let url = format!("{}{}", self.config.base_path, parsed_endpoint); let url_with_params = generate_path_from_params(url, params);