mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 10:54:52 +00:00
API code style tidy
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
<?php
|
||||
if($_SERVER['REQUEST_METHOD'] !== "GET"){
|
||||
header("HTTP/1.1 405 Method Not Allowed");
|
||||
$return_arr['success'] = "False";
|
||||
$return_arr['message'] = "Can only send GET requests to this endpoint.";
|
||||
echo json_encode($return_arr);
|
||||
exit();
|
||||
if ($_SERVER['REQUEST_METHOD'] !== "GET") {
|
||||
header("HTTP/1.1 405 Method Not Allowed");
|
||||
$return_arr['success'] = "False";
|
||||
$return_arr['message'] = "Can only send GET requests to this endpoint.";
|
||||
echo json_encode($return_arr);
|
||||
exit();
|
||||
}
|
||||
|
||||
// Wildcard client ID for most SELECT queries
|
||||
if($client_id == 0){
|
||||
$client_id = "%";
|
||||
if ($client_id == 0) {
|
||||
$client_id = "%";
|
||||
}
|
||||
Reference in New Issue
Block a user