diff --git a/src/trx-client/trx-frontend/trx-frontend-http/src/api/assets.rs b/src/trx-client/trx-frontend/trx-frontend-http/src/api/assets.rs index 7f5c1c7a..2f84d383 100644 --- a/src/trx-client/trx-frontend/trx-frontend-http/src/api/assets.rs +++ b/src/trx-client/trx-frontend/trx-frontend-http/src/api/assets.rs @@ -95,6 +95,18 @@ pub(crate) async fn about_index(req: HttpRequest) -> impl Responder { 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 // --------------------------------------------------------------------------- diff --git a/src/trx-client/trx-frontend/trx-frontend-http/src/api/mod.rs b/src/trx-client/trx-frontend/trx-frontend-http/src/api/mod.rs index 528f313b..e79233e1 100644 --- a/src/trx-client/trx-frontend/trx-frontend-http/src/api/mod.rs +++ b/src/trx-client/trx-frontend/trx-frontend-http/src/api/mod.rs @@ -637,6 +637,8 @@ pub fn configure(cfg: &mut web::ServiceConfig) { .service(assets::recorder_index) .service(assets::settings_index) .service(assets::about_index) + .service(assets::statistics_index) + .service(assets::bookmarks_index) .service(assets::favicon) .service(assets::favicon_png) .service(assets::logo)