12 lines
199 B
Rust
12 lines
199 B
Rust
|
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),
|
||
|
}
|
||
|
}
|