mount the network status route

This commit is contained in:
glyph 2022-10-25 15:15:13 +01:00
parent 4e7fbd5fdf
commit d9167a2cd6
1 changed files with 4 additions and 0 deletions

View File

@ -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)