mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-23 11:21:32 +00:00
Running cargo fmt
This commit is contained in:
parent
64a127845e
commit
dcad96170e
3 changed files with 7 additions and 4 deletions
|
@ -25,10 +25,10 @@ pub extern crate strum;
|
||||||
pub mod api;
|
pub mod api;
|
||||||
pub mod apub;
|
pub mod apub;
|
||||||
pub mod db;
|
pub mod db;
|
||||||
pub mod schema;
|
|
||||||
pub mod websocket;
|
|
||||||
pub mod nodeinfo;
|
pub mod nodeinfo;
|
||||||
|
pub mod schema;
|
||||||
pub mod version;
|
pub mod version;
|
||||||
|
pub mod websocket;
|
||||||
|
|
||||||
use chrono::{DateTime, NaiveDateTime, Utc};
|
use chrono::{DateTime, NaiveDateTime, Utc};
|
||||||
use dotenv::dotenv;
|
use dotenv::dotenv;
|
||||||
|
|
|
@ -200,7 +200,10 @@ fn main() {
|
||||||
// static resources
|
// static resources
|
||||||
.service(actix_files::Files::new("/static", front_end_dir()))
|
.service(actix_files::Files::new("/static", front_end_dir()))
|
||||||
.route("/nodeinfo/2.0.json", web::get().to(nodeinfo::node_info))
|
.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")
|
.bind("0.0.0.0:8536")
|
||||||
.unwrap()
|
.unwrap()
|
||||||
|
|
|
@ -2,8 +2,8 @@ use crate::db::community_view::SiteView;
|
||||||
use crate::db::establish_connection;
|
use crate::db::establish_connection;
|
||||||
use crate::version;
|
use crate::version;
|
||||||
use crate::Settings;
|
use crate::Settings;
|
||||||
use actix_web::HttpResponse;
|
|
||||||
use actix_web::body::Body;
|
use actix_web::body::Body;
|
||||||
|
use actix_web::HttpResponse;
|
||||||
use serde_json::json;
|
use serde_json::json;
|
||||||
|
|
||||||
pub fn node_info_well_known() -> HttpResponse<Body> {
|
pub fn node_info_well_known() -> HttpResponse<Body> {
|
||||||
|
|
Loading…
Reference in a new issue