|
@@ -20,3 +20,19 @@ func registerLocalAuxRoutes() {
|
|
http.HandleFunc("/aux/releasereset", auxMCU.HandleReleaseResetButton)
|
|
http.HandleFunc("/aux/releasereset", auxMCU.HandleReleaseResetButton)
|
|
http.HandleFunc("/aux/getuuid", auxMCU.HandleGetUUID)
|
|
http.HandleFunc("/aux/getuuid", auxMCU.HandleGetUUID)
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+// Dummy Aux APIs for setups that do not have an aux MCU
|
|
|
|
+func registerDummyLocalAuxRoutes() {
|
|
|
|
+ dummyHandler := func(w http.ResponseWriter, r *http.Request) {
|
|
|
|
+ w.WriteHeader(http.StatusNotImplemented)
|
|
|
|
+ w.Write([]byte("Not implemented"))
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ http.HandleFunc("/aux/switchusbkvm", dummyHandler)
|
|
|
|
+ http.HandleFunc("/aux/switchusbremote", dummyHandler)
|
|
|
|
+ http.HandleFunc("/aux/presspower", dummyHandler)
|
|
|
|
+ http.HandleFunc("/aux/releasepower", dummyHandler)
|
|
|
|
+ http.HandleFunc("/aux/pressreset", dummyHandler)
|
|
|
|
+ http.HandleFunc("/aux/releasereset", dummyHandler)
|
|
|
|
+ http.HandleFunc("/aux/getuuid", dummyHandler)
|
|
|
|
+}
|