Files
wevads-platform/public/msend-api.php

8 lines
276 B
PHP

<?php
header('Content-Type: application/json');
header('Access-Control-Allow-Origin: *');
if ($_SERVER['REQUEST_METHOD'] === 'OPTIONS') { exit; }
$_SERVER['REQUEST_METHOD'] = $_SERVER['REQUEST_METHOD'] ?? 'GET';
chdir('/opt/wevads/public');
include 'api/manual-send-api.php';