feat(main): main

This commit is contained in:
2026-03-09 08:26:45 -04:00
parent f37382d2b8
commit f14454b4c8
12 changed files with 598 additions and 62 deletions

View File

@@ -34,6 +34,13 @@ export const deleteTemplate = async (id) => { await apiClient.delete(`/schedule/
export const generateScheduleToday = async (channelId) =>
(await apiClient.post(`/schedule/generate-today/${channelId}`)).data;
export const fetchTemplateBlocks = async (templateId) =>
(await apiClient.get(`/schedule/template/${templateId}/blocks`)).data;
export const createTemplateBlock = async (payload) =>
(await apiClient.post('/schedule/block/', payload)).data;
export const deleteTemplateBlock = async (blockId) =>
(await apiClient.delete(`/schedule/block/${blockId}`)).data;
// Legacy used by guide
export const fetchScheduleGenerations = async (channelId) =>
(await apiClient.post(`/schedule/generate/${channelId}`)).data;