Reintroduce status and power-related templates and routes #140
|
@ -248,6 +248,10 @@ pub fn mount_peachpub_routes(
|
||||||
routes::settings::theme::set_theme(theme)
|
routes::settings::theme::set_theme(theme)
|
||||||
},
|
},
|
||||||
|
|
||||||
|
(GET) (/status) => {
|
||||||
|
Response::html(routes::status::device::build_template())
|
||||||
|
},
|
||||||
|
|
||||||
(GET) (/status/scuttlebutt) => {
|
(GET) (/status/scuttlebutt) => {
|
||||||
Response::html(routes::status::scuttlebutt::build_template()).add_cookie("back_url=/status/scuttlebutt")
|
Response::html(routes::status::scuttlebutt::build_template()).add_cookie("back_url=/status/scuttlebutt")
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue