added new headers and added table in asignation table

This commit is contained in:
2026-02-27 11:27:52 -06:00
parent 0ddb17a23f
commit 1027bd0673
26 changed files with 240 additions and 105 deletions
+5
View File
@@ -1,10 +1,15 @@
import axios from "axios";
import { envConfig } from "./config";
import Cookies from "js-cookie";
export async function getTableByCount(idCuenta: number) {
try {
const token = Cookies.get("token");
const headers = { Authorization: `Bearer ${token}` };
const res = await axios.get(
`${envConfig.apiUrl}/bitacora-mesa/table/${idCuenta}`,
{ headers },
);
return res.data;
} catch (error: any) {