mirror of
https://github.com/redlib-org/redlib.git
synced 2025-06-08 07:37:45 +00:00
Switch to awc
This commit is contained in:
parent
842d97e9fa
commit
dbe617d7eb
7 changed files with 61 additions and 91 deletions
|
@ -47,7 +47,7 @@ pub async fn profile(req: HttpRequest) -> HttpResponse {
|
|||
}
|
||||
|
||||
// USER
|
||||
async fn user(name: &str) -> Result<User, &'static str> {
|
||||
async fn user(name: &str) -> Result<User, String> {
|
||||
// Build the Reddit JSON API path
|
||||
let path: String = format!("/user/{}/about.json", name);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue