Files
html/api/wevia-run-tests.php

15 lines
588 B
PHP

<?php
// OPUS v3 — Endpoint dédié pour tests orchestrés sur exec pool (120s timeout)
// Route: /api/wevia-run-tests.php → exec.sock (voir nginx location)
header("Content-Type: application/json");
$k = $_REQUEST["k"] ?? "";
if ($k !== "BLADE2026") { echo json_encode(["e"=>"auth"]); exit; }
// Re-emit: délègue à wevia-ops action=run_fast_tests via include interne
$_REQUEST["action"] = "run_fast_tests";
$_GET["action"] = "run_fast_tests";
$_POST["action"] = "run_fast_tests";
$_REQUEST["k"] = "BLADE2026";
$_POST["k"] = "BLADE2026";
require "/var/www/html/api/wevia-ops.php";