mount GET and POST routes for modifying wifi ap password
This commit is contained in:
parent
b6cd54142c
commit
97030fbfbf
|
@ -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)
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue