bedder feedback on http response

This commit is contained in:
2021-03-23 13:39:44 +01:00
parent e08a0df52f
commit 0419ecf707
17 changed files with 132 additions and 90 deletions
+3 -2
View File
@@ -25,8 +25,9 @@ if (!isAdmin()){
header('Content-Type: application/json;charset=UTF-8');
echo json_encode(array('data' => $find_all_keywords->jsonSerialize()));
}else{
echo http_response_code(400);
http_response_code(400);
}
}else{
echo http_response_code(401);
http_response_code(401);
echo json_encode(["message" => "is not admin"]);
}