split main launcher into seperate file

This commit is contained in:
SpikeHD
2022-07-21 22:41:15 -07:00
parent d28af907ec
commit 011b15c8d9
7 changed files with 229 additions and 160 deletions

View File

@@ -1,4 +1,4 @@
use reqwest::header::USER_AGENT;
use reqwest::header::{CONTENT_TYPE, USER_AGENT};
pub(crate) async fn query(site: &str) -> String {
let client = reqwest::Client::new();
@@ -6,6 +6,7 @@ pub(crate) async fn query(site: &str) -> String {
let response = client
.get(site)
.header(USER_AGENT, "cultivation")
.header(CONTENT_TYPE, "application/json")
.send()
.await
.unwrap();