release: v1.1.0 - 동기화 현황 메뉴 + 배치 리팩토링 + CI/CD #15

병합
HYOJIN develop 에서 main 로 6 commits 를 머지했습니다 2026-03-25 11:24:26 +09:00
Showing only changes of commit 86f0942194 - Show all commits

파일 보기

@ -26,6 +26,16 @@ async function putJson<T>(url: string, body?: unknown): Promise<T> {
return res.json();
}
async function patchJson<T>(url: string, body?: unknown): Promise<T> {
const res = await fetch(url, {
method: 'PATCH',
headers: { 'Content-Type': 'application/json' },
body: body ? JSON.stringify(body) : undefined,
});
if (!res.ok) throw new Error(`API Error: ${res.status} ${res.statusText}`);
return res.json();
}
async function deleteJson<T>(url: string): Promise<T> {
const res = await fetch(url, { method: 'DELETE' });
if (!res.ok) throw new Error(`API Error: ${res.status} ${res.statusText}`);
@ -400,7 +410,7 @@ export const batchApi = {
deleteJson<{ success: boolean; message: string }>(`${BASE}/schedules/${jobName}`),
toggleSchedule: (jobName: string, active: boolean) =>
postJson<{ success: boolean; message: string; data?: ScheduleResponse }>(
patchJson<{ success: boolean; message: string; data?: ScheduleResponse }>(
`${BASE}/schedules/${jobName}/toggle`, { active }),
// Timeline