Add viewId parameter to fetchProjects query

This commit is contained in:
Exteban08
2026-01-08 18:02:42 +00:00
parent d147b74a54
commit fab39f099d

View File

@@ -4,8 +4,7 @@ const API_TOKEN = import.meta.env.VITE_API_TOKEN;
export const getAuthHeaders = () => ({ export const getAuthHeaders = () => ({
"Content-Type": "application/json", "Content-Type": "application/json",
"xc-token": API_TOKEN, // NocoDB style Authorization: `Bearer ${API_TOKEN}`,
Authorization: `Bearer ${API_TOKEN}`, // fallback por si el backend usa Bearer
}); });
export interface ProjectRecord { export interface ProjectRecord {