About 1752878182115 milliseconds have passed since midnight of the january the first in 1970. ------------------------------------------------------ } ====================================== Contents of "wellknown.rs" ====================================== use rocket::{ get, http::Header, response::{self, Responder}, serde::json::{json, Value}, Request, }; pub struct Cors<T>(pub T); #[rocket::async_trait] impl<'r, T: Responder<'r, 'static>> Responder<'r, 'static> for Cors<T> { fn respond_to(self, request: &'r Request<'_>) -> response::Result<'static> { let mut resp = self.0.respond_to(request); if let Ok(resp) = &mut resp { resp.set_header(Header::new("access-control-allow-origin", "*")); } resp } } #[get("/.well-known/matrix/client")] pub fn r_wellknown_matrix_client() -> Cors<Value> {