@@ 30,8 30,6 @@ struct RandomArgs {
/// check https://wallhaven.cc/help/api#search
/// for shid
q: String,
- /// api key from wallhaven.cc
- api_key: String,
}
#[derive(Deserialize)]
@@ 45,7 43,7 @@ struct WHSearchRes {
}
/// get redirected to random img
-/// e.g. localhost:3000/random/2560x1440/16x9/100/001/+forest/APIKEY
+/// e.g. localhost:3000/random/2560x1440/16x9/100/001/+forest
#[get("/random/{atleast}/{ratios}/{purity}/{categories}/{q}")]
async fn random(args: web::Path<RandomArgs>) -> impl Responder {
let atl = args.atleast.clone();