async fn get_wifi_mode() -> Result<Json<WifiModeResponse>, Error>
gets the current wifi mode (AP or Station) to let the frontend decide which components to show