mirror of
https://github.com/4cuck/nitter-status.git
synced 2026-10-27 00:57:39 +00:00
1 parent
533cc753db
commit
bc156af23e
17 files changed
+284
-52
No files matched your search
@@ -32,6 +32,7 @@ pub async fn instances(
|
||||
}
|
||||
|
||||
pub async fn about(
|
||||
State(ref cache): State<Cache>,
|
||||
State(ref template): State<Arc<tera::Tera>>,
|
||||
State(ref scanner_config): State<ScannerConfig>,
|
||||
) -> Result<axum::response::Response> {
|
||||
@@ -53,6 +54,10 @@ pub async fn about(
|
||||
"ping_avg_interval_h",
|
||||
&scanner_config.ping_range.num_hours(),
|
||||
);
|
||||
{
|
||||
let guard = cache.read().map_err(|_| ServerError::MutexFailure)?;
|
||||
context.insert("latest_commit", &guard.latest_commit);
|
||||
}
|
||||
|
||||
let mut res = Html(template.render("about.html.j2", &context)?).into_response();
|
||||
res.headers_mut().insert(
|
||||
|
||||
Reference in new issue
Block a user