add: json error message

This commit is contained in:
Johannes Kantz 2023-01-21 13:25:49 +01:00
parent 464a9c7dbc
commit 1034dd30f9

View File

@ -235,7 +235,7 @@ class Router
if ($controller) {
$controller($this->request, $this->response);
} else {
echo "404";
$this->response->json(["status" => "404", "message" => "Not found"], 404);
}
}
}