mirror of
https://github.com/stoatchat/stoatchat.git
synced 2026-07-14 05:26:59 +00:00
10 lines
261 B
Rust
10 lines
261 B
Rust
use crate::database::*;
|
|
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.id) }))
|
|
}
|