use actix_web::{get, HttpResponse, Responder, HttpRequest, Either}; #[get("/")] pub async fn decky_index(req: HttpRequest) -> impl Responder { if req.headers().contains_key("X-Decky-Version") { // a real store request Either::Left(actix_web::web::Redirect::to("/plugins").temporary()) } else { Either::Right(HttpResponse::Ok() .insert_header(("Content-Type", "text/html")) .body(r##"