implemented step 19 by Gemini
- Preview and Export
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user