mirror of
https://codeberg.org/vlw/vlw.se.git
synced 2026-04-13 01:39:40 +02:00
23 lines
436 B
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(),
|
|
]);
|
|
}
|
|
}
|