package main import "net/http" func registerAPIRoutes() { // Start the web server http.Handle("/", http.FileServer(webfs)) http.HandleFunc("/hid", usbKVM.HIDWebSocketHandler) http.HandleFunc("/audio", videoCapture.AudioStreamingHandler) http.HandleFunc("/stream", videoCapture.ServeVideoStream) } func registerLocalAuxRoutes() { http.HandleFunc("/aux/switchusbkvm", auxMCU.HandleSwitchUSBToKVM) http.HandleFunc("/aux/switchusbremote", auxMCU.HandleSwitchUSBToRemote) http.HandleFunc("/aux/presspower", auxMCU.HandlePressPowerButton) http.HandleFunc("/aux/releasepower", auxMCU.HandleReleasePowerButton) http.HandleFunc("/aux/pressreset", auxMCU.HandlePressResetButton) http.HandleFunc("/aux/releasereset", auxMCU.HandleReleaseResetButton) http.HandleFunc("/aux/getuuid", auxMCU.HandleGetUUID) }