12 lines
367 B
PHP
Executable File
12 lines
367 B
PHP
Executable File
<?php
|
|
header('Content-Type: application/json');
|
|
header('Access-Control-Allow-Origin: *');
|
|
$action=$_GET['action']??'stats';
|
|
switch($action){
|
|
case 'stats':
|
|
echo json_encode(['status'=>'success','data'=>['total'=>12450,'delivered'=>11320,'bounced'=>830,'spam'=>300]]);
|
|
break;
|
|
default:
|
|
echo json_encode(['status'=>'success','data'=>['active'=>true]]);
|
|
}
|