feat(onboard): implement onboarding routes

This commit is contained in:
Paul Makles
2022-02-04 14:57:10 +00:00
parent 1aafa51033
commit 780b88eb2f
2 changed files with 29 additions and 6 deletions

View File

@@ -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()
})
}