Merge remote-tracking branch 'origin/staging' into feat/domain-wide-footer

This commit is contained in:
FreddleSpl0it committed 2023-09-13 12:44:41 +02:00
commit d132a51a4d
155 files changed
+4097 -2214

No files matched your search

+5 -2
View File
@@ -2,9 +2,9 @@
/*
see /api
*/
header('Content-Type: application/json');
require_once $_SERVER['DOCUMENT_ROOT'] . '/inc/prerequisites.inc.php';
cors("set_headers");
header('Content-Type: application/json');
error_reporting(0);
function api_log($_data) {
@@ -1949,6 +1949,9 @@ if (isset($_GET['query'])) {
process_edit_return(edit_user_account($attr));
}
break;
case "cors":
process_edit_return(cors('edit', $attr));
break;
// return no route found if no case is matched
default:
http_response_code(404);