implemented step 19 by Gemini

- Preview and Export
This commit is contained in:
2026-06-15 05:05:41 +02:00
parent 4135b621c4
commit c0f13495ce
5 changed files with 246 additions and 8 deletions

View File

@ -143,6 +143,14 @@ try {
sendResponse(true, $result);
break;
case 'exportWebsite':
$projectId = $data['project_id'] ?? null;
if (!$projectId) {
sendResponse(false, ['code' => 'MISSING_PROJECT_ID', 'message' => 'Project ID is required.'], 400);
}
sendResponse(true, $projectActions->exportWebsite($userId, $projectId));
break;
default:
sendResponse(false, ['code' => 'UNKNOWN_ACTION', 'message' => "Action '$action' is not defined."], 404);
break;