PHP-Course/exam/api/users/index.php
2024-07-13 17:22:53 +02:00

16 lines
216 B
PHP

<?php
$method = $_SERVER['REQUEST_METHOD'];
switch ($method) {
case "GET":
return get();
default:
return Response::api("$method not supported", 500);
}
function get()
{
Response::api("GET USERS");
}