show commits in news section

This commit is contained in:
SpikeHD
2022-05-14 02:05:14 -07:00
parent 053c43a079
commit 3d62512814
5 changed files with 92 additions and 7 deletions

View File

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