Refactor CreditBalanceViewSet for improved error handling and account retrieval. Update PublisherViewSet registration to root level for cleaner URL structure. Adjust siteBuilder.api.ts to reflect new endpoint for deploying blueprints.

This commit is contained in:
IGNY8 VPS (Salman)
2025-11-18 19:10:23 +00:00
parent c378e503d8
commit 49ac8f10c1
4 changed files with 67 additions and 36 deletions

View File

@@ -162,6 +162,7 @@ export const siteBuilderApi = {
* Deploy a blueprint to Sites renderer
*/
async deployBlueprint(blueprintId: number): Promise<{ success: boolean; deployment_url?: string; deployment_id?: number }> {
// PublisherViewSet is now registered with empty prefix, so URL is /publisher/deploy/{id}/
const response = await fetchAPI(`/v1/publisher/deploy/${blueprintId}/`, {
method: 'POST',
});