vlw.se/api/ping/GET.php

23 lines
436 B
PHP

<?php
use Reflect\{Response, Path};
use VLW\API\API;
require_once Path::root("src/API/API.php");
final class GET_Ping extends API {
public function __construct() {
parent::__construct();
}
public function main(): Response {
return new Response([
"ping" => "pong",
"GET" => $_GET,
"POST" => $_POST,
"HEADERS" => getallheaders(),
"datetime" => new DateTimeImmutable(),
]);
}
}