Files
stoatchat/src/routes/onboard/hello.rs
2021-08-06 17:24:16 +01:00

12 lines
226 B
Rust

use crate::database::*;
use rauth::auth::Session;
use rocket::serde::json::Value;
#[get("/hello")]
pub async fn req(_session: Session, user: Option<User>) -> Value {
json!({
"onboarding": user.is_none()
})
}