mirror of
https://github.com/redlib-org/redlib.git
synced 2025-06-07 23:27:51 +00:00
Switch to awc
This commit is contained in:
parent
842d97e9fa
commit
dbe617d7eb
7 changed files with 61 additions and 91 deletions
|
@ -84,7 +84,7 @@ pub async fn wiki(req: HttpRequest) -> HttpResponse {
|
|||
}
|
||||
|
||||
// SUBREDDIT
|
||||
async fn subreddit(sub: &str) -> Result<Subreddit, &'static str> {
|
||||
async fn subreddit(sub: &str) -> Result<Subreddit, String> {
|
||||
// Build the Reddit JSON API url
|
||||
let path: String = format!("/r/{}/about.json?raw_json=1", sub);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue