Reintroduce status and power-related templates and routes #140

Merged
glyph merged 13 commits from refactor_stats into main 2022-11-28 07:18:03 +00:00
1 changed files with 4 additions and 0 deletions
Showing only changes of commit d9167a2cd6 - Show all commits

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)