added new headers and added table in asignation table
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user