diff --git a/server/src/lib.rs b/server/src/lib.rs index b5c2676..bdef086 100644 --- a/server/src/lib.rs +++ b/server/src/lib.rs @@ -25,10 +25,10 @@ pub extern crate strum; pub mod api; pub mod apub; pub mod db; -pub mod schema; -pub mod websocket; pub mod nodeinfo; +pub mod schema; pub mod version; +pub mod websocket; use chrono::{DateTime, NaiveDateTime, Utc}; use dotenv::dotenv; diff --git a/server/src/main.rs b/server/src/main.rs index 8c77199..8064e1b 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -200,7 +200,10 @@ fn main() { // static resources .service(actix_files::Files::new("/static", front_end_dir())) .route("/nodeinfo/2.0.json", web::get().to(nodeinfo::node_info)) - .route("/.well-known/nodeinfo", web::get().to(nodeinfo::node_info_well_known)) + .route( + "/.well-known/nodeinfo", + web::get().to(nodeinfo::node_info_well_known), + ) }) .bind("0.0.0.0:8536") .unwrap() diff --git a/server/src/nodeinfo.rs b/server/src/nodeinfo.rs index bbdb65d..69c8691 100644 --- a/server/src/nodeinfo.rs +++ b/server/src/nodeinfo.rs @@ -2,8 +2,8 @@ use crate::db::community_view::SiteView; use crate::db::establish_connection; use crate::version; use crate::Settings; -use actix_web::HttpResponse; use actix_web::body::Body; +use actix_web::HttpResponse; use serde_json::json; pub fn node_info_well_known() -> HttpResponse {