diff options
| author | uku <[email protected]> | 2023-10-13 18:31:21 +0200 |
|---|---|---|
| committer | seth <[email protected]> | 2023-10-13 13:05:37 -0400 |
| commit | dec178a883769e221c8da3c125f83c6512b733e3 (patch) | |
| tree | 2c83398eea4375a12ba3e6583ec43ae3a6bf3070 /src/api/mod.rs | |
| parent | 05e0831f7926dd4afda8e72c6ea5aa7a466b6bea (diff) | |
move client & logic into api module
Diffstat (limited to 'src/api/mod.rs')
| -rw-r--r-- | src/api/mod.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/api/mod.rs b/src/api/mod.rs index c2ad56f..6224ab1 100644 --- a/src/api/mod.rs +++ b/src/api/mod.rs @@ -1 +1,11 @@ +use once_cell::sync::Lazy; + pub mod guzzle; +pub mod shiggy; + +pub static REQWEST_CLIENT: Lazy<reqwest::Client> = Lazy::new(|| { + reqwest::Client::builder() + .user_agent("teawieBot/0.1.0") + .build() + .unwrap_or_default() +}); |
