added zoom functionality, need to add endpoint to post
This commit is contained in:
@@ -5,7 +5,7 @@ import { CAM_BASE } from "../utils/config";
|
||||
const apiUrl = CAM_BASE;
|
||||
|
||||
async function fetchSnapshot() {
|
||||
const response = await fetch(`${apiUrl}/CameraA-preview`);
|
||||
const response = await fetch(`${apiUrl}/CameraRear-preview`);
|
||||
if (!response.ok) {
|
||||
throw new Error("Cannot reach endpoint");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user