<?php
if (isset($_GET['savePrompts'])) {
file_put_contents('chat.txt', $_POST['chatPrompt'] ?? '');
file_put_contents('snippet.txt', $_POST['snippetsPrompt'] ?? '');
file_put_contents('full.txt', $_POST['fullCodePrompt'] ?? '');
echo json_encode(['status'=>'ok']);
exit;
}
?>