mount GET and POST routes for modifying wifi ap password

This commit is contained in:
glyph 2022-09-29 14:27:46 +01:00
parent b6cd54142c
commit 97030fbfbf
1 changed files with 12 additions and 0 deletions

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)
},