summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/gallery/src/civitai.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/examples/gallery/src/civitai.rs b/examples/gallery/src/civitai.rs
index 5844fdfc..7a8f1c45 100644
--- a/examples/gallery/src/civitai.rs
+++ b/examples/gallery/src/civitai.rs
@@ -22,7 +22,7 @@ impl Image {
}
let response: Response = client
- .get(endpoint("/images"))
+ .get("https://civitai.com/api/v1/images")
.query(&[
("sort", "Most Reactions"),
("period", "Week"),
@@ -108,12 +108,6 @@ pub enum Size {
Thumbnail,
}
-fn endpoint(path: &str) -> String {
- const API_URL: &str = "https://civitai.com/api/v1";
-
- format!("{API_URL}{path}")
-}
-
#[derive(Debug, Clone)]
#[allow(dead_code)]
pub enum Error {