forked from jmug/stoatchat
feat(onboard): implement onboarding routes
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
use rauth::entities::Session;
|
||||
use revolt_quark::models::User;
|
||||
use rocket::serde::json::Value;
|
||||
|
||||
#[get("/hello")]
|
||||
pub async fn req(/*_session: Session, user: Option<User>*/) -> Value {
|
||||
todo!()
|
||||
pub async fn req(_session: Session, user: Option<User>) -> Value {
|
||||
json!({
|
||||
"onboarding": user.is_none()
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user