Start moving to Rocket 0.5.0
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
use crate::database::*;
|
||||
|
||||
use rauth::auth::Session;
|
||||
use rocket_contrib::json::JsonValue;
|
||||
use rocket::serde::json::Value;
|
||||
|
||||
#[get("/hello")]
|
||||
pub async fn req(_session: Session, user: Option<User>) -> JsonValue {
|
||||
pub async fn req(_session: Session, user: Option<User>) -> Value {
|
||||
json!({
|
||||
"onboarding": user.is_none()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user