https://www.googleapis.com/youtube/v3/videos?id=%VIDEO_ID%&part=snippet
#[get("/index")]
pub async fn index() -> impl Responder {
let path = Path::new("test.txt");
spawn_blocking(|| cat(path)).await?
}
fn cat(path: &Path) -> io::Result<String> {
let mut f = File::open(path)?;
let mut s = String::new();
match f.read_to_string(&mut s) {
Ok(_) => Ok(s),
Err(e) => Err(e),
}
}