lykin_playalong/src/routes.rs

12 lines
199 B
Rust
Raw Normal View History

2022-09-24 10:23:54 +00:00
use rocket::get;
use crate::sbot;
#[get("/")]
pub async fn home() -> String {
match sbot::whoami().await {
Ok(id) => id,
Err(e) => format!("whoami call failed: {}", e),
}
}