This commit is contained in:
IGNY8 VPS (Salman)
2025-12-04 10:45:43 +00:00
parent a8c572a996
commit 32dae2a7d5
4 changed files with 480 additions and 198 deletions

View File

@@ -157,4 +157,14 @@ export const automationService = {
getPipelineOverview: async (siteId: number): Promise<{ stages: PipelineStage[] }> => {
return fetchAPI(buildUrl('/pipeline_overview/', { site_id: siteId }));
},
/**
* Publish all content without review (bulk action)
* Note: backend must implement this endpoint for it to succeed.
*/
publishWithoutReview: async (siteId: number): Promise<void> => {
await fetchAPI(buildUrl('/publish_without_review/', { site_id: siteId }), {
method: 'POST',
});
},
};