diff --git a/src/services/index/mod.rs b/src/services/index/mod.rs index 6a95ec6..bf7708b 100644 --- a/src/services/index/mod.rs +++ b/src/services/index/mod.rs @@ -1,10 +1,10 @@ +use crate::services::AppState; +use crate::services::health::response::EndpointStats; use crate::utility::url; use askama::Template; +use axum::extract::State; use axum::response::{Html, IntoResponse, Response}; use std::env; -use axum::extract::State; -use crate::services::AppState; -use crate::services::health::response::EndpointStats; #[derive(Template)] #[template(path = "index.html")] @@ -13,7 +13,7 @@ struct IndexTemplate { version: String, url: String, domain: String, - stats: EndpointStats , + stats: EndpointStats, } impl IntoResponse for IndexTemplate { diff --git a/src/services/mod.rs b/src/services/mod.rs index 40c71c1..bc1e55a 100644 --- a/src/services/mod.rs +++ b/src/services/mod.rs @@ -1,11 +1,11 @@ pub mod cache; mod country; mod health; +mod index; mod ip; pub mod jobs; pub mod routes; mod time; -mod index; pub use cache::StatsCache; use sea_orm::DatabaseConnection; diff --git a/src/services/routes.rs b/src/services/routes.rs index 688a620..666b75c 100644 --- a/src/services/routes.rs +++ b/src/services/routes.rs @@ -41,4 +41,4 @@ impl Routes { } app } -} \ No newline at end of file +}