Reintroduce networking-related templates and routes #138

Merged
glyph merged 17 commits from system_mode into main 2022-10-18 11:14:22 +00:00
1 changed files with 12 additions and 0 deletions
Showing only changes of commit 97030fbfbf - Show all commits

View File

@ -204,6 +204,18 @@ pub fn mount_peachpub_routes(
Response::html(routes::settings::network::menu::build_template(request)).reset_flash()
},
(GET) (/settings/network/wifi/modify) => {
Response::html(routes::settings::network::modify_ap::build_template(request, None)).reset_flash()
},
(POST) (/settings/network/wifi/modify) => {
routes::settings::network::modify_ap::handle_form(request)
},
(GET) (/settings/network/wifi/modify/{ssid: String}) => {
Response::html(routes::settings::network::modify_ap::build_template(request, Some(ssid))).reset_flash()
},
(GET) (/settings/theme/{theme: String}) => {
routes::settings::theme::set_theme(theme)
},