[fix](trx-frontend-http): serve /statistics and /bookmarks, align the Statistics page #32

Merged
sjg merged 2 commits from fix/statistics-alignment-and-routes into main 2026-08-03 00:08:49 +02:00
2 changed files with 14 additions and 0 deletions
Showing only changes of commit 00191c8d7a - Show all commits
@@ -95,6 +95,18 @@ pub(crate) async fn about_index(req: HttpRequest) -> impl Responder {
static_asset_response(&req, "text/html; charset=utf-8", c) static_asset_response(&req, "text/html; charset=utf-8", c)
} }
#[get("/statistics")]
pub(crate) async fn statistics_index(req: HttpRequest) -> impl Responder {
let c = gz_index_html();
static_asset_response(&req, "text/html; charset=utf-8", c)
}
#[get("/bookmarks")]
pub(crate) async fn bookmarks_index(req: HttpRequest) -> impl Responder {
let c = gz_index_html();
static_asset_response(&req, "text/html; charset=utf-8", c)
}
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
// Favicon & logo // Favicon & logo
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
@@ -637,6 +637,8 @@ pub fn configure(cfg: &mut web::ServiceConfig) {
.service(assets::recorder_index) .service(assets::recorder_index)
.service(assets::settings_index) .service(assets::settings_index)
.service(assets::about_index) .service(assets::about_index)
.service(assets::statistics_index)
.service(assets::bookmarks_index)
.service(assets::favicon) .service(assets::favicon)
.service(assets::favicon_png) .service(assets::favicon_png)
.service(assets::logo) .service(assets::logo)