diff options
author | Minteck <contact@minteck.org> | 2022-09-21 22:42:33 +0200 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-09-21 22:42:33 +0200 |
commit | e95b208af90cc386a7d8d1bcab426727cf4f0121 (patch) | |
tree | b293e0c644513fbeb6e9ad29be97fa6347a55e9f /pages/api.php | |
parent | b5f589c323f415bb42ea7069cb4d1a8a2233dd69 (diff) | |
download | pluralconnect-e95b208af90cc386a7d8d1bcab426727cf4f0121.tar.gz pluralconnect-e95b208af90cc386a7d8d1bcab426727cf4f0121.tar.bz2 pluralconnect-e95b208af90cc386a7d8d1bcab426727cf4f0121.zip |
Update time
Diffstat (limited to 'pages/api.php')
-rw-r--r-- | pages/api.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pages/api.php b/pages/api.php index a1f13d9..1d83985 100644 --- a/pages/api.php +++ b/pages/api.php @@ -11,5 +11,7 @@ $toplevel = explode("/", $pagename)[1]; if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/api/" . $toplevel . ".php")) { require_once $_SERVER['DOCUMENT_ROOT'] . "/api/" . $toplevel . ".php"; } else { - header("Location: /?error=Endpoint not found: " . strip_tags($toplevel)) and die(); + header("HTTP/1.1 500 Internal Server Error"); + echo("Endpoint not found"); + die(); }
\ No newline at end of file |