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 cfe270a995 - Show all commits

View File

@ -248,6 +248,10 @@ pub fn mount_peachpub_routes(
routes::settings::theme::set_theme(theme)
},
(GET) (/status) => {
Response::html(routes::status::device::build_template())
},
(GET) (/status/scuttlebutt) => {
Response::html(routes::status::scuttlebutt::build_template()).add_cookie("back_url=/status/scuttlebutt")
},