From d9167a2cd6acdcba5f691ef6374d0522ad205943 Mon Sep 17 00:00:00 2001 From: glyph Date: Tue, 25 Oct 2022 15:15:13 +0100 Subject: [PATCH] mount the network status route --- peach-web/src/private_router.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/peach-web/src/private_router.rs b/peach-web/src/private_router.rs index 248e375..ec1f120 100644 --- a/peach-web/src/private_router.rs +++ b/peach-web/src/private_router.rs @@ -252,6 +252,10 @@ pub fn mount_peachpub_routes( Response::html(routes::status::scuttlebutt::build_template()).add_cookie("back_url=/status/scuttlebutt") }, + (GET) (/status/network) => { + Response::html(routes::status::network::build_template()) + }, + // render the not_found template and set a 404 status code if none of // the other blocks matches the request _ => Response::html(templates::not_found::build_template()).with_status_code(404)