feat(main): main
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user