|
|
|
@ -5,7 +5,7 @@ use axum::{
|
|
|
|
|
use log::debug;
|
|
|
|
|
use serde::Serialize;
|
|
|
|
|
|
|
|
|
|
use crate::USER;
|
|
|
|
|
use crate::{HOST, USER};
|
|
|
|
|
|
|
|
|
|
#[derive(Serialize)]
|
|
|
|
|
pub struct UsersResponse {
|
|
|
|
@ -24,7 +24,7 @@ pub async fn users_get(Path(user): Path<String>) -> UsersResponse {
|
|
|
|
|
context: "https://www.w3.org/ns/activitystreams".to_string(),
|
|
|
|
|
r#type: "Person".to_string(),
|
|
|
|
|
name: "Sally Smith".to_string(),
|
|
|
|
|
id: "https://testhost.com/users/test".to_string(),
|
|
|
|
|
id: format!("https://{HOST}/users/{USER}"),
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|