use poem::web::Data; use sqlx::SqlitePool; use crate::{authentication::Authentication, subsonic::SubsonicResponse, utils}; #[poem::handler] pub async fn ping(Data(pool): Data<&SqlitePool>, auth: Authentication) -> SubsonicResponse { let u = utils::verify_user(pool, auth).await; match u { Ok(_) => SubsonicResponse::new_empty(), Err(e) => e, } }