Add /dhcp/interfaces API call to list available network interfaces.

This commit is contained in:
Eugene Bujak
2018-12-21 15:52:59 +03:00
parent 9fa85a5c48
commit 87b3c92f71
2 changed files with 73 additions and 1 deletions

View File

@@ -720,6 +720,7 @@ func registerControlHandlers() {
http.HandleFunc("/control/safesearch/disable", optionalAuth(ensurePOST(handleSafeSearchDisable)))
http.HandleFunc("/control/safesearch/status", optionalAuth(ensureGET(handleSafeSearchStatus)))
http.HandleFunc("/control/dhcp/status", optionalAuth(ensureGET(handleDHCPStatus)))
http.HandleFunc("/control/dhcp/interfaces", optionalAuth(ensureGET(handleDHCPInterfaces)))
http.HandleFunc("/control/dhcp/set_config", optionalAuth(ensurePOST(handleDHCPSetConfig)))
http.HandleFunc("/control/dhcp/find_active_dhcp", optionalAuth(ensurePOST(handleDHCPFindActiveServer)))
}