26 lines
1.3 KiB
PHP
26 lines
1.3 KiB
PHP
<?php
|
|
header('Content-Type: application/json');
|
|
header('Access-Control-Allow-Origin: *');
|
|
$action = $_GET['action'] ?? 'list';
|
|
|
|
switch ($action) {
|
|
case 'list':
|
|
echo json_encode(['ok' => true, 'automations' => [
|
|
['name' => 'Daily NonReg Report', 'trigger' => 'cron 6h+18h', 'status' => 'active', 'runs' => 58],
|
|
['name' => 'Error Alert → Telegram', 'trigger' => 'webhook', 'status' => 'active', 'runs' => 12],
|
|
['name' => 'Ethica Contact Enrichment', 'trigger' => 'cron 5h', 'status' => 'active', 'runs' => 7],
|
|
['name' => 'SSL Certificate Monitor', 'trigger' => 'daily', 'status' => 'active', 'runs' => 30],
|
|
['name' => 'WEVADS Deliverability Check', 'trigger' => 'hourly', 'status' => 'active', 'runs' => 720],
|
|
['name' => 'Git Backup to GitHub', 'trigger' => 'daily', 'status' => 'active', 'runs' => 30],
|
|
], 'engine' => 'Activepieces + n8n hybrid', 'total' => 6]);
|
|
break;
|
|
case 'status':
|
|
echo json_encode(['ok' => true, 'engine' => 'Activepieces', 'features' => [
|
|
'ai_copilot' => true, 'drag_and_drop' => true,
|
|
'integrations' => 400, 'open_source' => true
|
|
]]);
|
|
break;
|
|
default:
|
|
echo json_encode(['error' => 'action: list|status']);
|
|
}
|