DEVELOPMENT ENVIRONMENT

~liljamo/wallhavenapirandom

83e62542ccbdf48b274a1392e185bd8174a9310e — Jonni Liljamo 1 year, 8 months ago e503353
fix: previous commit
1 files changed, 1 insertions(+), 3 deletions(-)

M src/main.rs
M src/main.rs => src/main.rs +1 -3
@@ 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();