Initialize fresh project without Clerk

This commit is contained in:
2026-03-14 22:57:39 -03:00
commit 6898297935
401 changed files with 71631 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
import api from './api';
import type { YieldStudy } from '../types';
const BASE_URL = '/yield-studies';
export const getStudies = () => api.get<YieldStudy[]>(BASE_URL);
export const createStudy = (data: Partial<YieldStudy>) => api.post<YieldStudy>(BASE_URL, data);
export const updateStudy = (id: string, data: Partial<YieldStudy>) => api.put<YieldStudy>(`${BASE_URL}/${id}`, data);
export const deleteStudy = (id: string) => api.delete(`${BASE_URL}/${id}`);