Start work on notifications from client, cargo fmt
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
use crate::database::{entities::User, guards::reference::Ref, permissions::get_relationship};
|
||||
use rocket_contrib::json::JsonValue;
|
||||
use crate::util::result::Result;
|
||||
use rocket_contrib::json::JsonValue;
|
||||
|
||||
#[get("/<target>/relationship")]
|
||||
pub async fn req(user: User, target: Ref) -> Result<JsonValue> {
|
||||
Ok(json!({
|
||||
"status": get_relationship(&user, &target)
|
||||
}))
|
||||
Ok(json!({ "status": get_relationship(&user, &target) }))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user