Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/services/index/mod.rs
Original file line number Diff line number Diff line change
@@ -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")]
Expand All @@ -13,7 +13,7 @@ struct IndexTemplate {
version: String,
url: String,
domain: String,
stats: EndpointStats ,
stats: EndpointStats,
}

impl IntoResponse for IndexTemplate {
Expand Down
2 changes: 1 addition & 1 deletion src/services/mod.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/services/routes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ impl Routes {
}
app
}
}
}
Loading