updated cam base

This commit is contained in:
2025-09-29 08:47:13 +01:00
parent d308dd5c0e
commit 220ec2d376
3 changed files with 30 additions and 7 deletions

View File

@@ -1,9 +1,9 @@
import { useMutation, useQuery } from "@tanstack/react-query";
import { CAM_BASE } from "../utils/config";
import { OUTSIDE_CAM_BASE } from "../utils/config";
import type { CameraBlackBoardOptions } from "../types/types";
const getBlackboardData = async () => {
const response = await fetch(`${CAM_BASE}/api/blackboard`);
const response = await fetch(`${OUTSIDE_CAM_BASE}/api/blackboard`);
if (!response.ok) {
throw new Error("Failed to fetch blackboard data");
}
@@ -11,7 +11,7 @@ const getBlackboardData = async () => {
};
const viewBlackboardData = async (options: CameraBlackBoardOptions) => {
const response = await fetch(`${CAM_BASE}/api/blackboard`, {
const response = await fetch(`${OUTSIDE_CAM_BASE}/api/blackboard`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(options),